source: trunk/MagicSoft/Mars/mranforest/MRanForestGrow.h@ 6232

Last change on this file since 6232 was 2207, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef MARS_MRanForestGrow
2#define MARS_MRanForestGrow
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MRanForestGrow //
7// //
8// Task to grow (train) a random forest //
9// //
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef MARS_MTask
13#include "MTask.h"
14#endif
15
16class MHMatrix;
17class MParList;
18class MRanForest;
19class MRanTree;
20
21class MRanForestGrow : public MTask
22{
23private:
24 MRanTree *fRanTree;
25 MRanForest *fRanForest;
26 MHMatrix *fMGammas; //! Gammas describing matrix
27 MHMatrix *fMHadrons; //! Hadrons (non gammas) describing matrix
28
29 Int_t fNumTrees;
30 Int_t fNumTry;
31 Int_t fNdSize;
32
33 Int_t PreProcess(MParList *pList);
34 Int_t Process();
35 Int_t PostProcess();
36
37public:
38 MRanForestGrow(const char *name=NULL, const char *title=NULL);
39
40 void SetNumTrees(Int_t n){ fNumTrees=n;}
41 void SetNumTry(Int_t n) { fNumTry=n; }
42 void SetNdSize(Int_t n) { fNdSize=n; }
43
44 ClassDef(MRanForestGrow, 0) // Task to grow a random forest
45};
46
47#endif
48
Note: See TracBrowser for help on using the repository browser.