source: trunk/MagicSoft/Mars/manalysis/MRanForestGrow.h@ 1859

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