26 #ifndef ROOT_TMVA_MethodKNN 27 #define ROOT_TMVA_MethodKNN 61 const TString& theOption =
"KNN");
73 const std::vector<Float_t>& GetRegressionValues();
77 void WriteWeightsToStream(
TFile& rf)
const;
78 void AddWeightsXMLTo(
void* parent )
const;
79 void ReadWeightsFromXML(
void* wghtnode );
81 void ReadWeightsFromStream(std::istream& istr);
82 void ReadWeightsFromStream(
TFile &rf);
89 void MakeClassSpecific( std::ostream&,
const TString& )
const;
92 void GetHelpMessage()
const;
97 void DeclareOptions();
98 void ProcessOptions();
99 void DeclareCompatibilityOptions();
105 void MakeKNN(
void );
111 Double_t getKernelRadius(
const kNN::List &rlist)
const;
112 const std::vector<Double_t> getRMS(
const kNN::List &rlist,
const kNN::Event &event_knn)
const;
114 double getLDAValue(
const kNN::List &rlist,
const kNN::Event &event_knn);
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
Virtual base Class for all MVA method.
Ranking for variables in method (implementation)
#define ClassDef(name, id)
void Init(TClassEdit::TInterpreterLookupHelper *helper)
Class that contains all the data information.
LDA fLDA
(untouched) events used for learning
Int_t fTreeOptDepth
Experimental feature for local knn analysis.
Analysis of k-nearest neighbor.
Abstract ClassifierFactory template that handles arbitrary types.
virtual void ReadWeightsFromStream(std::istream &)=0
Int_t fnkNN
module where all work is done