Logo ROOT  
Reference Guide
TMVA::kNN::Event Class Reference

Definition at line 59 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...
 
VarType GetDist (const Event &other) const
 compute distance More...
 
VarType GetDist (VarType var, UInt_t ivar) const
  More...
 
UInt_t GetNTgt () const
  More...
 
UInt_t GetNVar () const
  More...
 
const VarVecGetTargets () const
  More...
 
VarType GetTgt (UInt_t i) const
  More...
 
Short_t GetType () const
  More...
 
VarType GetVar (UInt_t i) const
  More...
 
const VarVecGetVars () const
  More...
 
Double_t GetWeight () const
  More...
 
void Print () const
 print More...
 
void Print (std::ostream &os) const
 print More...
 
void SetTargets (const VarVec &tvec)
  More...
 

Private Attributes

VarVec fTgt
  More...
 
Short_t fType
  More...
 
VarVec fVar
  More...
 
Double_t fWeight
  More...
 

#include <TMVA/ModulekNN.h>

Constructor & Destructor Documentation

◆ Event() [1/3]

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

default constructor

Definition at line 50 of file ModulekNN.cxx.

◆ Event() [2/3]

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

constructor

Definition at line 60 of file ModulekNN.cxx.

◆ Event() [3/3]

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

constructor

Definition at line 70 of file ModulekNN.cxx.

◆ ~Event()

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

destructor

Definition at line 81 of file ModulekNN.cxx.

Member Function Documentation

◆ GetDist() [1/2]

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

compute distance

Definition at line 88 of file ModulekNN.cxx.

◆ GetDist() [2/2]

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

Definition at line 170 of file ModulekNN.h.

◆ GetNTgt()

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

Definition at line 192 of file ModulekNN.h.

◆ GetNVar()

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

Definition at line 188 of file ModulekNN.h.

◆ GetTargets()

const TMVA::kNN::VarVec & TMVA::kNN::Event::GetTargets ( ) const

Definition at line 114 of file ModulekNN.cxx.

◆ GetTgt()

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

Definition at line 183 of file ModulekNN.h.

◆ GetType()

Short_t TMVA::kNN::Event::GetType ( ) const
inline

Definition at line 196 of file ModulekNN.h.

◆ GetVar()

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

Definition at line 179 of file ModulekNN.h.

◆ GetVars()

const TMVA::kNN::VarVec & TMVA::kNN::Event::GetVars ( ) const

Definition at line 121 of file ModulekNN.cxx.

◆ GetWeight()

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

Definition at line 175 of file ModulekNN.h.

◆ Print() [1/2]

void TMVA::kNN::Event::Print ( ) const

print

Definition at line 129 of file ModulekNN.cxx.

◆ Print() [2/2]

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

print

Definition at line 137 of file ModulekNN.cxx.

◆ SetTargets()

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

Definition at line 107 of file ModulekNN.cxx.

Member Data Documentation

◆ fTgt

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

Definition at line 91 of file ModulekNN.h.

◆ fType

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

Definition at line 94 of file ModulekNN.h.

◆ fVar

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

Definition at line 90 of file ModulekNN.h.

◆ fWeight

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

Definition at line 93 of file ModulekNN.h.

Libraries for TMVA::kNN::Event:
[legend]

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