Ignore:
Timestamp:
03/27/03 11:37:39 (22 years ago)
Author:
hengsteb
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHRanForest.cc

    r1866 r1870  
    114114
    115115    Int_t ntrees=fRanForest->GetNumTrees();
    116 
     116    //cout<<"filling"<<endl;
    117117    for (Int_t i=0;i<ntrees;i++)
    118118    {
  • trunk/MagicSoft/Mars/mhist/MHRanForestGini.cc

    r1866 r1870  
    4141#include "MParList.h"
    4242#include "MBinning.h"
     43#include "MRanTree.h"
    4344#include "MRanForest.h"
    4445
    4546#include "MLog.h"
    4647#include "MLogManip.h"
    47 
    48 #include "MMcEvt.hxx"
    4948
    5049ClassImp(MHRanForestGini);
     
    8483Bool_t MHRanForestGini::SetupFill(const MParList *plist)
    8584{
    86     fMcEvt = (MMcEvt*)plist->FindObject("MMcEvt");
    87     if (!fMcEvt)
    88     {
    89         *fLog << err << dbginf << "MMcEvt not found... aborting." << endl;
    90         return kFALSE;
    91     }
    92 
    9385    fRanForest = (MRanForest*)plist->FindObject("MRanForest");
    9486    if (!fRanForest)
     
    111103{
    112104    for (Int_t i=0;i<fRanForest->GetNumDim();i++)
    113         fGini[i]+=fRanForest->GetGiniDec(i);
     105        fGini[i]+=fRanForest->GetCurTree()->GetGiniDec(i);
    114106
    115107    return kTRUE;
     
    163155    {
    164156        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");
    166158        g.GetYaxis()->SetTitle("Mean decrease in Gini-index [a.u.]");
    167159        g.SetMarkerStyle(kFullDotlarge);
     
    193185    {
    194186        fGraphGini->GetXaxis()->SetRangeUser(0, 1);
    195         fGraphGini->GetXaxis()->SetTitle("No. of parameter");
     187        fGraphGini->GetXaxis()->SetTitle("No. of RF-input parameter");
    196188        fGraphGini->GetYaxis()->SetTitle("Mean decrease in Gini-index [a.u.]");
    197189
  • trunk/MagicSoft/Mars/mhist/MHRanForestGini.h

    r1866 r1870  
    1313class TGraph;
    1414class MParList;
    15 class MMcEvt;
    1615class MRanForest;
     16class MRanTree;
    1717
    1818class MHRanForestGini : public MH
    1919{
    2020private:
    21     const MMcEvt *fMcEvt;          //!
    22     const MRanForest *fRanForest;  //!
     21    MRanForest *fRanForest;
    2322
    24     TArrayF fGini;                 //!
    25     TGraph *fGraphGini;            //->
     23    TArrayF fGini;
     24    TGraph *fGraphGini;
    2625
    2726public:
Note: See TracChangeset for help on using the changeset viewer.