Interface definition of the LVQ classifier.
More...
#include <PndLVQClassify.h>
Interface definition of the LVQ classifier.
Definition at line 21 of file PndLVQClassify.h.
PndLVQClassify::PndLVQClassify |
( |
std::string const & |
inputFile, |
|
|
std::vector< std::string > const & |
classNames, |
|
|
std::vector< std::string > const & |
varNames |
|
) |
| |
|
explicit |
Constructor:
- Parameters
-
inputFile | Input file name (Weights). |
classNames | class names. |
varNames | variable names of the features. |
virtual PndLVQClassify::~PndLVQClassify |
( |
| ) |
|
|
virtual |
To avoid mistakes (No deep copy)
std::string* PndLVQClassify::Classify |
( |
std::vector< float > |
EvtData | ) |
|
|
virtual |
Given a feature vector describing the pattern. Classifies the pattern.
- Parameters
-
EvtData | Input 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 |
void PndLVQClassify::GetMvaValues |
( |
std::vector< float > |
eventData, |
|
|
std::map< std::string, float > & |
result |
|
) |
| |
|
virtual |
- Parameters
-
eventData | Event data to be classified. |
result | Classification results. Currently the shortest distance for each class is stored in result. |
Implements PndMvaClassifier.
std::vector< PndMvaVariable > const & PndMvaClassifier::GetVariables |
( |
| ) |
const |
|
inlineinherited |
virtual void PndMvaClassifier::Initialize |
( |
| ) |
|
|
virtualinherited |
virtual void PndMvaClassifier::NormalizeEvent |
( |
std::vector< float > & |
EvtVector | ) |
const |
|
protectedvirtualinherited |
Normalize the given event vector.
void PndMvaClassifier::SetAppType |
( |
AppType |
t | ) |
|
|
inlineprotectedinherited |
The documentation for this class was generated from the following file: