Changeset 1870 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 03/27/03 11:37:39 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHRanForest.cc
r1866 r1870 114 114 115 115 Int_t ntrees=fRanForest->GetNumTrees(); 116 116 //cout<<"filling"<<endl; 117 117 for (Int_t i=0;i<ntrees;i++) 118 118 { -
trunk/MagicSoft/Mars/mhist/MHRanForestGini.cc
r1866 r1870 41 41 #include "MParList.h" 42 42 #include "MBinning.h" 43 #include "MRanTree.h" 43 44 #include "MRanForest.h" 44 45 45 46 #include "MLog.h" 46 47 #include "MLogManip.h" 47 48 #include "MMcEvt.hxx"49 48 50 49 ClassImp(MHRanForestGini); … … 84 83 Bool_t MHRanForestGini::SetupFill(const MParList *plist) 85 84 { 86 fMcEvt = (MMcEvt*)plist->FindObject("MMcEvt");87 if (!fMcEvt)88 {89 *fLog << err << dbginf << "MMcEvt not found... aborting." << endl;90 return kFALSE;91 }92 93 85 fRanForest = (MRanForest*)plist->FindObject("MRanForest"); 94 86 if (!fRanForest) … … 111 103 { 112 104 for (Int_t i=0;i<fRanForest->GetNumDim();i++) 113 fGini[i]+=fRanForest->Get GiniDec(i);105 fGini[i]+=fRanForest->GetCurTree()->GetGiniDec(i); 114 106 115 107 return kTRUE; … … 163 155 { 164 156 g.GetXaxis()->SetRangeUser(0, fRanForest->GetNumTrees()); 165 g.GetXaxis()->SetTitle("No. of RF-input parameter parameter");157 g.GetXaxis()->SetTitle("No. of RF-input parameter"); 166 158 g.GetYaxis()->SetTitle("Mean decrease in Gini-index [a.u.]"); 167 159 g.SetMarkerStyle(kFullDotlarge); … … 193 185 { 194 186 fGraphGini->GetXaxis()->SetRangeUser(0, 1); 195 fGraphGini->GetXaxis()->SetTitle("No. of parameter");187 fGraphGini->GetXaxis()->SetTitle("No. of RF-input parameter"); 196 188 fGraphGini->GetYaxis()->SetTitle("Mean decrease in Gini-index [a.u.]"); 197 189 -
trunk/MagicSoft/Mars/mhist/MHRanForestGini.h
r1866 r1870 13 13 class TGraph; 14 14 class MParList; 15 class MMcEvt;16 15 class MRanForest; 16 class MRanTree; 17 17 18 18 class MHRanForestGini : public MH 19 19 { 20 20 private: 21 const MMcEvt *fMcEvt; //! 22 const MRanForest *fRanForest; //! 21 MRanForest *fRanForest; 23 22 24 TArrayF fGini; //!25 TGraph *fGraphGini; //->23 TArrayF fGini; 24 TGraph *fGraphGini; 26 25 27 26 public:
Note:
See TracChangeset
for help on using the changeset viewer.