26 #ifndef ROOT_TMVA_ModulekNN 27 #define ROOT_TMVA_ModulekNN 51 #ifndef ROOT_ThreadLocalStorage 54 #ifndef ROOT_TMVA_NodekNN 94 void Print(std::ostream& os)
const;
106 typedef std::pair<const Node<Event> *, VarType>
Elem;
115 typedef std::map<int, std::vector<Double_t> >
VarMap;
131 const EventVec& GetEventVec()
const;
133 const List& GetkNNList()
const;
134 const Event& GetkNNEvent()
const;
136 const VarMap& GetVarMap()
const;
138 const std::map<Int_t, Double_t>& GetMetric()
const;
141 void Print(std::ostream &os)
const;
147 void ComputeMetric(
UInt_t ifrac);
180 const VarType var2 =
GetVar(ivar);
181 return (var1 - var2) * (var1 - var2);
Event()
default constructor
RooCmdArg Optimize(Int_t flag=2)
Random number generator class based on M.
const List & GetkNNList() const
VarType GetVar(UInt_t i) const
std::ostream & operator<<(std::ostream &os, const Event &event)
streamer
Double_t GetWeight() const
std::map< int, std::vector< Double_t > > VarMap
std::map< Int_t, Double_t > fVarScale
const std::map< Int_t, Double_t > & GetMetric() const
const VarVec & GetTargets() const
const EventVec & GetEventVec() const
void Add(THist< DIMENSIONS, PRECISION_TO, STAT_TO... > &to, THist< DIMENSIONS, PRECISION_FROM, STAT_FROM... > &from)
Add two histograms.
std::vector< TMVA::kNN::Event > EventVec
void SetTargets(const VarVec &tvec)
VarType GetDist(VarType var, UInt_t ivar) const
VarType GetTgt(UInt_t i) const
const VarMap & GetVarMap() const
std::pair< const Node< Event > *, VarType > Elem
static TRandom3 & GetRndmThreadLocal()
UInt_t Find(std::list< std::pair< const Node< T > *, Float_t > > &nlist, const Node< T > *node, const T &event, UInt_t nfind)
const VarVec & GetVars() const
const Event & GetkNNEvent() const
Abstract ClassifierFactory template that handles arbitrary types.
std::map< Short_t, UInt_t > fCount
std::vector< VarType > VarVec