yat  0.14.5pre
KernelFunction.h
1 #ifndef _theplu_yat_classifier_kernel_function_
2 #define _theplu_yat_classifier_kernel_function_
3 
4 // $Id: KernelFunction.h 2119 2009-12-12 23:11:43Z peter $
5 
6 /*
7  Copyright (C) 2003 Peter Johansson
8  Copyright (C) 2004 Jari Häkkinen, Peter Johansson
9  Copyright (C) 2005 Peter Johansson
10  Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson
11 
12  This file is part of the yat library, http://dev.thep.lu.se/yat
13 
14  The yat library is free software; you can redistribute it and/or
15  modify it under the terms of the GNU General Public License as
16  published by the Free Software Foundation; either version 3 of the
17  License, or (at your option) any later version.
18 
19  The yat library is distributed in the hope that it will be useful,
20  but WITHOUT ANY WARRANTY; without even the implied warranty of
21  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22  General Public License for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with yat. If not, see <http://www.gnu.org/licenses/>.
26 */
27 
28 namespace theplu {
29 namespace yat {
30 namespace classifier {
31  class DataLookup1D;
32  class DataLookupWeighted1D;
33 
38  {
39 
40  public:
44  KernelFunction(void) {};
45 
49  virtual ~KernelFunction(void) {};
50 
54  virtual double operator()(const DataLookup1D&,
55  const DataLookup1D&) const = 0;
56 
60  virtual double operator()(const DataLookup1D&,
61  const DataLookupWeighted1D&) const = 0;
62 
66  inline double operator()(const DataLookupWeighted1D& vec_w,
67  const DataLookup1D& vec) const
68  { return this->operator()(vec,vec_w); }
69 
73  virtual double operator()(const DataLookupWeighted1D&,
74  const DataLookupWeighted1D&) const = 0;
75 
76  }; // class KernelFunction
77 
78 }}} // of namespace classifier, yat, and theplu
79 
80 #endif
KernelFunction(void)
Definition: KernelFunction.h:44
Class for general vector view.
Definition: DataLookup1D.h:43
Interface class calculating elements in Kernel.
Definition: KernelFunction.h:37
virtual ~KernelFunction(void)
Definition: KernelFunction.h:49
virtual double operator()(const DataLookup1D &, const DataLookup1D &) const =0
Class for general weighted vector view.
Definition: DataLookupWeighted1D.h:43
double operator()(const DataLookupWeighted1D &vec_w, const DataLookup1D &vec) const
Definition: KernelFunction.h:66

Generated on Tue Sep 26 2017 02:33:29 for yat by  doxygen 1.8.5