yat  0.17pre
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
virtual double operator()(const DataLookup1D &, const DataLookup1D &) const =0
KernelFunction(void)
Definition: KernelFunction.h:44
The Department of Theoretical Physics namespace as we define it.
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
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 Wed Jul 17 2019 02:25:31 for yat by  doxygen 1.8.11