SHOGUN
v2.0.0
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
shogun
kernel
InverseMultiQuadricKernel.h
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or modify
3
* it under the terms of the GNU General Public License as published by
4
* the Free Software Foundation; either version 3 of the License, or
5
* (at your option) any later version.
6
*
7
* Written (W) 2011 Abhinav Maurya
8
* Copyright (C) 2007-2011 Fraunhofer Institute FIRST and Max-Planck-Society
9
* Copyright (C) 2011 Indian Institute of Technology Bombay
10
*/
11
12
#include <
shogun/lib/config.h
>
13
14
#ifndef INVERSEMULTIQUADRIC_H_
15
#define INVERSEMULTIQUADRIC_H_
16
17
#include <
shogun/lib/common.h
>
18
#include <
shogun/kernel/Kernel.h
>
19
#include <
shogun/distance/Distance.h
>
20
21
namespace
shogun
22
{
23
24
class
CDistance;
32
class
CInverseMultiQuadricKernel
:
public
CKernel
33
{
34
public
:
36
CInverseMultiQuadricKernel
();
37
43
CInverseMultiQuadricKernel
(int32_t cache,
float64_t
coef
,
CDistance
* dist);
44
51
CInverseMultiQuadricKernel
(
CFeatures
*l,
CFeatures
*r,
float64_t
coef,
CDistance
* dist);
52
58
virtual
bool
init
(
CFeatures
* l,
CFeatures
* r);
59
63
inline
virtual
EKernelType
get_kernel_type
() {
return
K_INVERSEMULTIQUADRIC
; }
64
68
inline
virtual
EFeatureType
get_feature_type
() {
return
distance
->
get_feature_type
(); }
69
73
inline
virtual
EFeatureClass
get_feature_class
() {
return
distance
->
get_feature_class
(); }
74
78
inline
virtual
const
char
*
get_name
()
const
{
return
"InverseMultiQuadricKernel"
; }
79
83
inline
float64_t
get_coef
() {
return
this->
coef
; }
84
88
inline
void
set_coef
(
float64_t
value) { this->coef = value; }
89
90
virtual
~CInverseMultiQuadricKernel
();
91
92
protected
:
93
96
CDistance
*
distance
;
97
100
float64_t
coef
;
101
109
virtual
float64_t
compute
(int32_t idx_a, int32_t idx_b);
110
119
virtual
void
load_serializable_post
() throw (
ShogunException
);
120
121
private:
122
123
void
init();
124
};
125
126
}
127
128
#endif
/* INVERSEMULTIQUADRIC_H_ */
SHOGUN
Machine Learning Toolbox - Documentation