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

Generated on Thu Jan 10 2019 02:54:19 for yat by  doxygen 1.8.11