#include <PndStdKnnClassify.h>
Definition at line 23 of file PndStdKnnClassify.h.
◆ PndStdKnnClassify()
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. |
◆ ~PndStdKnnClassify()
virtual PndStdKnnClassify::~PndStdKnnClassify |
( |
| ) |
|
|
virtual |
◆ Classify()
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.
◆ GetKnn()
unsigned int PndStdKnnClassify::GetKnn |
( |
| ) |
const |
|
inline |
◆ GetMvaValues()
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.
◆ Initialize()
void PndStdKnnClassify::Initialize |
( |
| ) |
|
|
virtual |
◆ SetKNN()
void PndStdKnnClassify::SetKNN |
( |
unsigned int const |
nNeighbours | ) |
|
|
inline |
The documentation for this class was generated from the following file: