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 );
109 Double_t GausKernel(
const kNN::Event &event_knn,
const kNN::Event &event,
const std::vector<Double_t> &svec)
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)
Class that contains all the data information.
LDA fLDA
(untouched) events used for learning
This file contains binary tree and global function template that searches tree for k-nearest neigbors...
Int_t fTreeOptDepth
Experimental feature for local knn analysis.
Analysis of k-nearest neighbor.
std::vector< TMVA::kNN::Event > EventVec
Abstract ClassifierFactory template that handles arbitrary types.
virtual void ReadWeightsFromStream(std::istream &)=0
Int_t fnkNN
module where all work is done