PandaRoot
PndKnnTrain.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 /* ************************************
14  * Author: M. Babai (M.Babai@rug.nl) *
15  * *
16  * pid classifier *
17  * *
18  * Modified: *
19  * *
20  * ************************************/
21 //#pragma once
22 #ifndef PND_KNN_TRAIN_H
23 #define PND_KNN_TRAIN_H
24 
25 #include "PndMvaTrainer.h"
26 
27 class PndKnnTrain : public PndMvaTrainer {
28  public:
36  explicit PndKnnTrain(std::string const &InputFile, std::vector<std::string> const &ClassNames, std::vector<std::string> const &VarNames, bool trim = true);
40  virtual ~PndKnnTrain();
41 
45  void Train();
46 
51  void storeWeights();
52 
53  private:
55  PndKnnTrain(PndKnnTrain const &other);
56  PndKnnTrain &operator=(PndKnnTrain const &other);
57 };
58 // end of interface definition
59 #endif
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()