#include <PndStdKnnClassify.h>
Definition at line 23 of file PndStdKnnClassify.h.
PndStdKnnClassify::PndStdKnnClassify |
( |
std::string const & |
inputFile, |
|
|
std::vector< std::string > const & |
classNames, |
|
|
std::vector< std::string > const & |
varNames |
|
) |
| |
|
explicit |
- Parameters
-
inputFile,: | The name of the file that holds the weights |
classNames,: | The names of classes to which an event might be assigned to. |
varNames,: | Variable names from which the feature vector is built. |
virtual PndStdKnnClassify::~PndStdKnnClassify |
( |
| ) |
|
|
virtual |
std::string* PndStdKnnClassify::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 |
unsigned int PndStdKnnClassify::GetKnn |
( |
| ) |
const |
|
inline |
Get number of neighbors.
Definition at line 83 of file PndStdKnnClassify.h.
References m_Knn.
unsigned int m_Knn
Number of Neighbours.
void PndStdKnnClassify::GetMvaValues |
( |
std::vector< float > |
eventData, |
|
|
std::map< std::string, float > & |
result |
|
) |
| |
|
virtual |
Classification function.
- Parameters
-
EvtData,: | Feature vector of the current event which we want to classify. |
result,: | Holds the normalized results of classification for every class of events. |
Implements PndMvaClassifier.
std::vector< PndMvaVariable > const & PndMvaClassifier::GetVariables |
( |
| ) |
const |
|
inlineinherited |
void PndStdKnnClassify::Initialize |
( |
| ) |
|
|
virtual |
virtual void PndMvaClassifier::NormalizeEvent |
( |
std::vector< float > & |
EvtVector | ) |
const |
|
protectedvirtualinherited |
Normalize the given event vector.
void PndMvaClassifier::SetAppType |
( |
AppType |
t | ) |
|
|
inlineprotectedinherited |
void PndStdKnnClassify::SetKNN |
( |
unsigned int const |
nNeighbours | ) |
|
|
inline |
- Parameters
-
Neighbours,: | Number of Neighbours. |
Definition at line 88 of file PndStdKnnClassify.h.
References m_Knn.
unsigned int m_Knn
Number of Neighbours.
unsigned int PndStdKnnClassify::m_Knn |
|
private |
The documentation for this class was generated from the following file: