FairRoot/PandaRoot
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
PndLVQClassify Class Reference

Interface definition of the LVQ classifier. More...

#include <PndLVQClassify.h>

Inheritance diagram for PndLVQClassify:
PndMvaClassifier

Public Member Functions

 PndLVQClassify (std::string const &inputFile, std::vector< std::string > const &classNames, std::vector< std::string > const &varNames)
 
virtual ~PndLVQClassify ()
 
void GetMvaValues (std::vector< float > eventData, std::map< std::string, float > &result)
 
std::string * Classify (std::vector< float > EvtData)
 
virtual void Initialize ()
 
std::vector< PndMvaClass > const & GetClasses () const
 Get the list of available classes (labels). More...
 
std::vector< PndMvaVariable >
const & 
GetVariables () const
 Get the list of available variables. More...
 

Protected Member Functions

virtual void NormalizeEvent (std::vector< float > &EvtVector) const
 Normalize the given event vector. More...
 
void SetAppType (AppType t)
 

Protected Attributes

PndMvaDataSet m_dataSets
 Data set. Holds event Weights. More...
 

Private Member Functions

 PndLVQClassify (PndLVQClassify const &other)
 To avoid mistakes (No deep copy) More...
 
PndLVQClassifyoperator= (PndLVQClassify const &other)
 

Detailed Description

Interface definition of the LVQ classifier.

Definition at line 21 of file PndLVQClassify.h.

Constructor & Destructor Documentation

PndLVQClassify::PndLVQClassify ( std::string const &  inputFile,
std::vector< std::string > const &  classNames,
std::vector< std::string > const &  varNames 
)
explicit

Constructor:

Parameters
inputFileInput file name (Weights).
classNamesclass names.
varNamesvariable names of the features.
virtual PndLVQClassify::~PndLVQClassify ( )
virtual

Destructor

PndLVQClassify::PndLVQClassify ( PndLVQClassify const &  other)
private

To avoid mistakes (No deep copy)

Member Function Documentation

std::string* PndLVQClassify::Classify ( std::vector< float >  EvtData)
virtual

Given a feature vector describing the pattern. Classifies the pattern.

Parameters
EvtDataInput vector describing the pattern.
Returns
The name of the class to which the current pattern is assigned.

Implements PndMvaClassifier.

std::vector< PndMvaClass > const & PndMvaClassifier::GetClasses ( ) const
inlineinherited

Get the list of available classes (labels).

Definition at line 90 of file PndMvaClassifier.h.

References PndMvaDataSet::GetClasses(), and PndMvaClassifier::m_dataSets.

91 {
92  return m_dataSets.GetClasses();
93 };
PndMvaDataSet m_dataSets
Data set. Holds event Weights.
std::vector< PndMvaClass > const & GetClasses() const
Get the list of available classes (labels).
void PndLVQClassify::GetMvaValues ( std::vector< float >  eventData,
std::map< std::string, float > &  result 
)
virtual
Parameters
eventDataEvent data to be classified.
resultClassification results. Currently the shortest distance for each class is stored in result.

Implements PndMvaClassifier.

std::vector< PndMvaVariable > const & PndMvaClassifier::GetVariables ( ) const
inlineinherited

Get the list of available variables.

Definition at line 96 of file PndMvaClassifier.h.

References PndMvaDataSet::GetVars(), and PndMvaClassifier::m_dataSets.

97 {
98  return m_dataSets.GetVars();
99 };
PndMvaDataSet m_dataSets
Data set. Holds event Weights.
std::vector< PndMvaVariable > const & GetVars() const
Get the list of available variables.
virtual void PndMvaClassifier::Initialize ( )
virtualinherited
virtual void PndMvaClassifier::NormalizeEvent ( std::vector< float > &  EvtVector) const
protectedvirtualinherited

Normalize the given event vector.

PndLVQClassify& PndLVQClassify::operator= ( PndLVQClassify const &  other)
private
void PndMvaClassifier::SetAppType ( AppType  t)
inlineprotectedinherited

Definition at line 83 of file PndMvaClassifier.h.

References PndMvaClassifier::m_dataSets, and PndMvaDataSet::SetAppType().

84 {
86 };
void SetAppType(AppType t)
PndMvaDataSet m_dataSets
Data set. Holds event Weights.
TTree * t
Definition: bump_analys.C:13

Member Data Documentation

PndMvaDataSet PndMvaClassifier::m_dataSets
protectedinherited

Data set. Holds event Weights.

Definition at line 75 of file PndMvaClassifier.h.

Referenced by PndMvaClassifier::GetClasses(), PndMvaClassifier::GetVariables(), and PndMvaClassifier::SetAppType().


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