Changeset 1870 for trunk/MagicSoft/Mars/mhist/MHRanForestGini.cc
- Timestamp:
- 03/27/03 11:37:39 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.