yat
0.11.3pre
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
yat
classifier
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
37
class
KernelFunction
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
Generated on Sat May 24 2014 03:33:04 for yat by
1.8.2