Changeset 6479 for trunk/MagicSoft
- Timestamp:
- 02/15/05 12:17:18 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mranforest
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mranforest/MRanForest.h
r2297 r6479 4 4 #ifndef MARS_MParContainer 5 5 #include "MParContainer.h" 6 #endif 7 8 #ifndef MARS_MRanTree 9 #include "MRanTree.h" 10 #endif 11 12 #ifndef MARS_MDataArray 13 #include "MDataArray.h" 6 14 #endif 7 15 … … 35 43 private: 36 44 Int_t fNumTrees; 37 Int_t fTreeNo; 45 Int_t fTreeNo; //! 38 46 39 MRanTree *fRanTree; 47 MRanTree *fRanTree; //! 40 48 TObjArray *fForest; 41 49 42 50 // training data 43 MHMatrix *fGammas; 44 MHMatrix *fHadrons; 51 MHMatrix *fGammas; //! 52 MHMatrix *fHadrons; //! 45 53 46 54 // true and estimated hadronness 47 TArrayI fHadTrue; 48 TArrayF fHadEst; 55 TArrayI fHadTrue; //! 56 TArrayF fHadEst; //! 49 57 50 58 // data sorted according to parameters 51 TArrayI fDataSort; 52 TArrayI fDataRang; 53 TArrayI fClassPop; 59 TArrayI fDataSort; //! 60 TArrayI fDataRang; //! 61 TArrayI fClassPop; //! 54 62 55 63 // weights 56 Bool_t fUsePriors; 57 TArrayF fPrior; 58 TArrayF fWeight; 59 TArrayI fNTimesOutBag; 64 Bool_t fUsePriors; //! 65 TArrayF fPrior; //! 66 TArrayF fWeight; //! 67 TArrayI fNTimesOutBag;//! 60 68 61 69 // estimates for classification error of growing forest 62 TArrayD fTreeHad; 70 TArrayD fTreeHad; // 63 71 64 72 void InitHadEst(Int_t from, Int_t to, const TMatrix &m, TArrayI &jinbag); … … 85 93 86 94 // getter methods 87 TObjArray *GetForest() { return fForest; } 88 MRanTree *GetCurTree() { return fRanTree; } 95 TObjArray *GetForest() { return fForest; } 96 MRanTree *GetCurTree() { return fRanTree; } 97 MRanTree *GetTree(Int_t i) { return (MRanTree*)(fForest->At(i)); } 98 MDataArray *GetRules() { return ((MRanTree*)(fForest->At(0)))->GetRules(); } 99 100 89 101 Int_t GetNumTrees() const { return fNumTrees; } 90 Int_t GetNumData() const;91 Int_t GetNumDim() const;102 Int_t GetNumData() const; 103 Int_t GetNumDim() const; 92 104 Double_t GetTreeHad(Int_t i) const { return fTreeHad.At(i); } 93 105 … … 97 109 Bool_t AsciiWrite(ostream &out) const; 98 110 99 ClassDef(MRanForest, 0) // Storage container for tree structure111 ClassDef(MRanForest, 1) // Storage container for tree structure 100 112 }; 101 113 -
trunk/MagicSoft/Mars/mranforest/Makefile
r3927 r6479 28 28 MRanForestFill.cc \ 29 29 MHRanForest.cc \ 30 MHRanForestGini.cc 30 MHRanForestGini.cc \ 31 MRFEnergyEst.cc 31 32 32 33 ############################################################ -
trunk/MagicSoft/Mars/mranforest/RanForestLinkDef.h
r2071 r6479 14 14 #pragma link C++ class MHRanForestGini+; 15 15 16 #pragma link C++ class MRFEnergyEst+; 17 16 18 #endif
Note:
See TracChangeset
for help on using the changeset viewer.