ROOT  6.06/09
Reference Guide
Public Member Functions | Private Attributes | List of all members
TMVA::kNN::Event Class Reference

Definition at line 67 of file ModulekNN.h.

Public Member Functions

 Event ()
 default constructor More...
 
 Event (const VarVec &vec, Double_t weight, Short_t type)
 constructor More...
 
 Event (const VarVec &vec, Double_t weight, Short_t type, const VarVec &tvec)
 constructor More...
 
 ~Event ()
 destructor More...
 
Double_t GetWeight () const
 
VarType GetVar (UInt_t i) const
 
VarType GetTgt (UInt_t i) const
 
UInt_t GetNVar () const
 
UInt_t GetNTgt () const
 
Short_t GetType () const
 
VarType GetDist (VarType var, UInt_t ivar) const
 
VarType GetDist (const Event &other) const
 compute distance More...
 
void SetTargets (const VarVec &tvec)
 
const VarVecGetTargets () const
 
const VarVecGetVars () const
 
void Print () const
 print More...
 
void Print (std::ostream &os) const
 print More...
 

Private Attributes

VarVec fVar
 
VarVec fTgt
 
Double_t fWeight
 
Short_t fType
 

#include <TMVA/ModulekNN.h>

+ Collaboration diagram for TMVA::kNN::Event:

Constructor & Destructor Documentation

TMVA::kNN::Event::Event ( )

default constructor

Definition at line 43 of file ModulekNN.cxx.

TMVA::kNN::Event::Event ( const VarVec vec,
Double_t  weight,
Short_t  type 
)

constructor

Definition at line 53 of file ModulekNN.cxx.

TMVA::kNN::Event::Event ( const VarVec vec,
Double_t  weight,
Short_t  type,
const VarVec tvec 
)

constructor

Definition at line 63 of file ModulekNN.cxx.

TMVA::kNN::Event::~Event ( )

destructor

Definition at line 74 of file ModulekNN.cxx.

Member Function Documentation

VarType TMVA::kNN::Event::GetDist ( VarType  var,
UInt_t  ivar 
) const
inline

Definition at line 178 of file ModulekNN.h.

TMVA::kNN::VarType TMVA::kNN::Event::GetDist ( const Event other) const

compute distance

Definition at line 81 of file ModulekNN.cxx.

UInt_t TMVA::kNN::Event::GetNTgt ( ) const
inline

Definition at line 200 of file ModulekNN.h.

UInt_t TMVA::kNN::Event::GetNVar ( ) const
inline
const TMVA::kNN::VarVec & TMVA::kNN::Event::GetTargets ( ) const

Definition at line 107 of file ModulekNN.cxx.

Referenced by TMVA::MethodKNN::GetRegressionValues().

VarType TMVA::kNN::Event::GetTgt ( UInt_t  i) const
inline

Definition at line 191 of file ModulekNN.h.

Short_t TMVA::kNN::Event::GetType ( ) const
inline
VarType TMVA::kNN::Event::GetVar ( UInt_t  i) const
inline
const TMVA::kNN::VarVec & TMVA::kNN::Event::GetVars ( ) const

Definition at line 114 of file ModulekNN.cxx.

Referenced by TMVA::MethodKNN::getLDAValue().

Double_t TMVA::kNN::Event::GetWeight ( ) const
inline
void TMVA::kNN::Event::Print ( ) const

print

Definition at line 122 of file ModulekNN.cxx.

void TMVA::kNN::Event::Print ( std::ostream &  os) const

print

Definition at line 130 of file ModulekNN.cxx.

void TMVA::kNN::Event::SetTargets ( const VarVec tvec)

Definition at line 100 of file ModulekNN.cxx.

Referenced by TMVA::MethodKNN::Train().

Member Data Documentation

VarVec TMVA::kNN::Event::fTgt
private

Definition at line 99 of file ModulekNN.h.

Referenced by GetNTgt(), and GetTgt().

Short_t TMVA::kNN::Event::fType
private

Definition at line 102 of file ModulekNN.h.

Referenced by GetType().

VarVec TMVA::kNN::Event::fVar
private

Definition at line 98 of file ModulekNN.h.

Referenced by GetNVar(), and GetVar().

Double_t TMVA::kNN::Event::fWeight
private

Definition at line 101 of file ModulekNN.h.

Referenced by GetWeight().


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