PandaRoot
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)
 
- Public Member Functions inherited from PndMvaClassifier
 PndMvaClassifier (std::string const &InPut, std::vector< std::string > const &ClassNames, std::vector< std::string > const &VarNames)
 Constructor. More...
 
virtual ~PndMvaClassifier ()
 Destructor. More...
 
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...
 

Additional Inherited Members

- Protected Member Functions inherited from PndMvaClassifier
virtual void NormalizeEvent (std::vector< float > &EvtVector) const
 Normalize the given event vector. More...
 
void SetAppType (AppType t)
 
- Protected Attributes inherited from PndMvaClassifier
PndMvaDataSet m_dataSets
 Data set. Holds event Weights. More...
 

Detailed Description

Interface definition of the LVQ classifier.

Definition at line 21 of file PndLVQClassify.h.

Constructor & Destructor Documentation

◆ PndLVQClassify()

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.

◆ ~PndLVQClassify()

virtual PndLVQClassify::~PndLVQClassify ( )
virtual

Destructor

Member Function Documentation

◆ Classify()

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.

◆ GetMvaValues()

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.


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