Logo ROOT   6.10/09
Reference Guide
List of all members | Public Types | List of all members
TMVA::kNN Class Reference

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 > *, VarTypeElem
typedef std::vector< TMVA::kNN::EventEventVec
typedef std::list< ElemList
typedef Float_t VarType
typedef std::vector< VarTypeVarVec

Member Typedef Documentation

◆ Elem

typedef std::pair<const Node<Event> *, VarType> TMVA::kNN::Elem

Definition at line 98 of file ModulekNN.h.

◆ EventVec

typedef std::vector<TMVA::kNN::Event> TMVA::kNN::EventVec

Definition at line 97 of file ModulekNN.h.

◆ List

typedef std::list<Elem> TMVA::kNN::List

Definition at line 99 of file ModulekNN.h.

◆ VarType

typedef Float_t TMVA::kNN::VarType

Definition at line 56 of file ModulekNN.h.

◆ VarVec

typedef std::vector<VarType> TMVA::kNN::VarVec

Definition at line 57 of file ModulekNN.h.

The documentation for this class was generated from the following files: