Line | |
---|
1 | #ifndef MARS_MJTrainEnergy
|
---|
2 | #define MARS_MJTrainEnergy
|
---|
3 |
|
---|
4 | #ifndef MARS_MJTrainRanForest
|
---|
5 | #include "MJTrainRanForest.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MDataSet;
|
---|
9 |
|
---|
10 | class MJTrainEnergy : public MJTrainRanForest
|
---|
11 | {
|
---|
12 | private:
|
---|
13 | TString fTrainParameter;
|
---|
14 | TString fResultFunction;
|
---|
15 |
|
---|
16 | public:
|
---|
17 | MJTrainEnergy() { SetTrainLin(); }
|
---|
18 |
|
---|
19 | void SetTrainLog() { SetTrainFunc("log10(MMcEvt.fEnergy)", "pow(10, x)"); }
|
---|
20 | void SetTrainLin() { SetTrainFunc("MMcEvt.fEnergy", "x"); }
|
---|
21 |
|
---|
22 | void SetTrainFunc(const char *par, const char *res)
|
---|
23 | {
|
---|
24 | fTrainParameter = par;
|
---|
25 | fResultFunction = res;
|
---|
26 | }
|
---|
27 |
|
---|
28 | Bool_t Train(const char *out, const MDataSet &set, Int_t num);
|
---|
29 |
|
---|
30 | ClassDef(MJTrainEnergy, 0)//Class to train Random Forest energy estimator
|
---|
31 | };
|
---|
32 |
|
---|
33 |
|
---|
34 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.