yat  0.21pre
PolynomialKernelFunction.h
1 #ifndef _theplu_yat_classifier_polynomial_kernel_function_
2 #define _theplu_yat_classifier_polynomial_kernel_function_
3 
4 // $Id: PolynomialKernelFunction.h 4207 2022-08-26 04:36:28Z peter $
5 
6 /*
7  Copyright (C) 2003 Peter Johansson
8  Copyright (C) 2004, 2005, 2006, 2007, 2008 Jari Häkkinen, Peter Johansson
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 "KernelFunction.h"
28 
29 #include <cmath>
30 
31 namespace theplu {
32 namespace yat {
33 namespace classifier {
34 
35  class DataLookup1D;
36 
40 
41 
43  {
44 
45  public:
50  PolynomialKernelFunction(int = 1);
51 
55  virtual ~PolynomialKernelFunction(void) {};
56 
62  double operator()(const DataLookup1D& a1, const DataLookup1D& a2) const;
63 
69  double operator()(const DataLookup1D& x,
70  const DataLookupWeighted1D& y) const;
79  double operator()(const DataLookupWeighted1D& x,
80  const DataLookupWeighted1D& y) const;
81 
82 
83  private:
84  int order_;
85 
86  }; // class PolynomialKernelFunction
87 
88 }}} // of namespace classifier, yat, and theplu
89 
90 #endif
The Department of Theoretical Physics namespace as we define it.
virtual ~PolynomialKernelFunction(void)
Definition: PolynomialKernelFunction.h:55
Class for general vector view.
Definition: DataLookup1D.h:43
Interface class calculating elements in Kernel.
Definition: KernelFunction.h:38
Class for polynomial kernel calculations.
Definition: PolynomialKernelFunction.h:42
double operator()(const DataLookup1D &a1, const DataLookup1D &a2) const
Class for general weighted vector view.
Definition: DataLookupWeighted1D.h:43

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