ROOT 6.10/09 Reference Guide |
This file contains binary tree and global function template that searches tree for k-nearest neigbors.
kNN::Event describes point in input variable vector-space, with additional functionality like distance between points
Node class template parameter T has to provide these functions: rtype GetVar(UInt_t) const;
Find function template parameter T has to provide these functions: (in addition to above requirements) rtype GetDist(Float_t, UInt_t) const;
where T::GetDist(Float_t, UInt_t) <= T::GetDist(const T &) for any pair of events and any variable number for these events
Public Types | |
typedef std::pair< const Node< Event > *, VarType > | Elem |
typedef std::vector< TMVA::kNN::Event > | EventVec |
typedef std::list< Elem > | List |
typedef Float_t | VarType |
typedef std::vector< VarType > | VarVec |
Definition at line 98 of file ModulekNN.h.
typedef std::vector<TMVA::kNN::Event> TMVA::kNN::EventVec |
Definition at line 97 of file ModulekNN.h.
typedef std::list<Elem> TMVA::kNN::List |
Definition at line 99 of file ModulekNN.h.
typedef Float_t TMVA::kNN::VarType |
Definition at line 56 of file ModulekNN.h.
typedef std::vector<VarType> TMVA::kNN::VarVec |
Definition at line 57 of file ModulekNN.h.