yat  0.21pre
KNN_ReciprocalDistance.h
1 #ifndef theplu_yat_classifier_knn_reciprocal_distance_h
2 #define theplu_yat_classifier_knn_reciprocal_distance_h
3 
4 // $Id: KNN_ReciprocalDistance.h 4207 2022-08-26 04:36:28Z peter $
5 
6 /*
7  Copyright (C) 2008 Jari Häkkinen, Peter Johansson, Markus Ringnér
8  Copyright (C) 2013 Jari Häkkinen
9  Copyright (C) 2022 Peter Johansson
10 
11  This file is part of the yat library, http://dev.thep.lu.se/yat
12 
13  The yat library is free software; you can redistribute it and/or
14  modify it under the terms of the GNU General Public License as
15  published by the Free Software Foundation; either version 3 of the
16  License, or (at your option) any later version.
17 
18  The yat library is distributed in the hope that it will be useful,
19  but WITHOUT ANY WARRANTY; without even the implied warranty of
20  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21  General Public License for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with yat. If not, see <http://www.gnu.org/licenses/>.
25 */
26 
27 #include <cstddef>
28 #include <vector>
29 
30 namespace theplu {
31 namespace yat {
32 
33  namespace utility {
34  class VectorBase;
35  class VectorMutable;
36  }
37 
38 namespace classifier {
39 
40  class Target;
41 
50  {
54  void operator()(const utility::VectorBase& dist,
55  const std::vector<size_t>& k_sorted,
56  const Target& target,
57  utility::VectorMutable& prediction) const;
58  };
59 
60 }}} // of namespace classifier, yat, and theplu
61 
62 #endif
Class for containing sample labels.
Definition: Target.h:47
The Department of Theoretical Physics namespace as we define it.
void operator()(const utility::VectorBase &dist, const std::vector< size_t > &k_sorted, const Target &target, utility::VectorMutable &prediction) const
This is the yat interface to GSL vector.
Definition: VectorBase.h:55
This is the mutable interface to GSL vector.
Definition: VectorMutable.h:56
A model of the concept Neighbor Weighting Method to be used with KNN to weight the votes of the k nea...
Definition: KNN_ReciprocalDistance.h:49

Generated on Wed Jan 25 2023 03:34:29 for yat by  doxygen 1.8.14