Changeset 7178 for trunk/MagicSoft/Mars/mranforest/MRFEnergyEst.h
- Timestamp:
- 07/08/05 18:14:35 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mranforest/MRFEnergyEst.h
r7169 r7178 23 23 { 24 24 kMean, 25 kMaximum 25 kMaximum, 26 kFit 26 27 }; 27 28 private: 28 Int_t fNumTrees; // Training parameters 29 Int_t fNumTry; // Training parameters 30 Int_t fNdSize; // Training parameters 29 Bool_t fDebug; // Debugging of eventloop while training on/off 31 30 32 Bool_t fDebug; // Debugging of eventloop while training on/off 33 34 TString fFileName; 35 TObjArray fEForests; 31 TString fFileName; // File name to forest 32 TObjArray fEForests; // List of forests 36 33 37 34 MDataArray *fData; //! Used to store the MDataChains to get the event values 38 35 MParameterD *fEnergyEst; //! Used to storeestimated energy 39 36 40 MHMatrix *fTestMatrix; 37 Int_t fNumTrees; //! Training parameters 38 Int_t fNumTry; //! Training parameters 39 Int_t fNdSize; //! Training parameters 41 40 42 TArrayD fBinning;41 MHMatrix *fTestMatrix; //! Test Matrix 43 42 44 43 EstimationMode_t fEstimationMode; 45 44 45 // MRFEnergyEst 46 Int_t ReadForests(MParList &plist); 47 48 // MTask 46 49 Int_t PreProcess(MParList *plist); 47 50 Int_t Process(); 48 51 49 Int_t ReadForests(MParList &plist); 50 52 // MParContainer 51 53 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); 52 54 53 55 public: 54 56 MRFEnergyEst(const char *name=NULL, const char *title=NULL); 57 ~MRFEnergyEst(); 55 58 59 // Setter for estimation 56 60 void SetFileName(TString str) { fFileName = str; } 61 void SetEstimationMode(EstimationMode_t op) { fEstimationMode = op; } 57 62 63 // Setter for training 58 64 void SetNumTrees(Int_t n=-1) { fNumTrees = n; } 59 65 void SetNdSize(Int_t n=-1) { fNdSize = n; } 60 66 void SetNumTry(Int_t n=-1) { fNumTry = n; } 67 void SetDebug(Bool_t b=kTRUE) { fDebug = b; } 61 68 69 // Train Interface 70 Int_t Train(const MHMatrix &n, const TArrayD &grid); 71 72 // Test Interface 62 73 void SetTestMatrix(MHMatrix *m=0) { fTestMatrix=m; } 63 74 void InitMapping(MHMatrix *m=0) { fTestMatrix=m; } 64 65 void SetDebug(Bool_t b=kTRUE) { fDebug = b; }66 67 void SetEstimationMode(EstimationMode_t op) { fEstimationMode = op; }68 69 Int_t Train(const MHMatrix &n, const TArrayD &grid);70 75 71 76 ClassDef(MRFEnergyEst, 0) // Task
Note:
See TracChangeset
for help on using the changeset viewer.