10 #ifndef PND_KNN_CLASSIFY_H
11 #define PND_KNN_CLASSIFY_H
17 #include "TMVA/NodekNN.h"
18 #include "TMVA/ModulekNN.h"
39 std::vector<std::string>
const& classNames,
40 std::vector<std::string>
const& varNames);
50 std::map<std::string, float>& result);
56 std::string*
Classify(std::vector<float> EvtData);
63 inline void SetEvtParam(
float const scFact,
double const weight);
66 inline void SetKnn(
size_t const N);
92 typedef std::list < std::pair<const TMVA::kNN::Node<TMVA::kNN::Event>*,
float> >
ResList;
void InitKNN()
Type definition for the neighbours list.
float m_ScaleFact
Scalefactor Default = 0.8.
std::map< std::string, size_t > m_classIndices
void GetMvaValues(std::vector< float > eventData, std::map< std::string, float > &result)
!< Type definition of the neighbour list.
virtual ~PndKnnClassify()
Destructor.
double m_weight
Event weight.
PndKnnClassify(std::string const &inputFile, std::vector< std::string > const &classNames, std::vector< std::string > const &varNames)
size_t m_knn
Number of required neighbours.
void SetEvtParam(float const scFact, double const weight)
std::list< std::pair< const TMVA::kNN::Node< TMVA::kNN::Event > *, float > > ResList
void SetKnn(size_t const N)
Set the number of neighbours.
std::string * Classify(std::vector< float > EvtData)
TMVA::kNN::ModulekNN * m_module
void print()
DEBUG Produces a lot of output.
virtual void Initialize()
size_t GetKnn()
Get the number of neighbours.
PndKnnClassify & operator=(PndKnnClassify const &other)