FairRoot/PandaRoot
PndKnnTrain.h
Go to the documentation of this file.
1 /* ************************************
2  * Author: M. Babai (M.Babai@rug.nl) *
3  * *
4  * pid classifier *
5  * *
6  * Modified: *
7  * *
8  * ************************************/
9 //#pragma once
10 #ifndef PND_KNN_TRAIN_H
11 #define PND_KNN_TRAIN_H
12 
13 #include "PndMvaTrainer.h"
14 
15 class PndKnnTrain : public PndMvaTrainer
16 {
17  public:
25  explicit PndKnnTrain(std::string const& InputFile,
26  std::vector<std::string> const& ClassNames,
27  std::vector<std::string> const& VarNames,
28  bool trim = true);
32  virtual ~PndKnnTrain();
33 
37  void Train();
38 
43  void storeWeights();
44 
45  private:
47  PndKnnTrain( PndKnnTrain const& other);
48  PndKnnTrain& operator=( PndKnnTrain const& other);
49 };
50 //end of interface definition
51 #endif
PndKnnTrain & operator=(PndKnnTrain const &other)
void storeWeights()
PndKnnTrain(std::string const &InputFile, std::vector< std::string > const &ClassNames, std::vector< std::string > const &VarNames, bool trim=true)
virtual ~PndKnnTrain()
void Train()