SHOGUN
3.2.1
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
kernel
InverseMultiQuadricKernel.h
浏览该文件的文档.
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
virtual
EKernelType
get_kernel_type
() {
return
K_INVERSEMULTIQUADRIC
; }
64
68
virtual
EFeatureType
get_feature_type
() {
return
distance
->
get_feature_type
(); }
69
73
virtual
EFeatureClass
get_feature_class
() {
return
distance
->
get_feature_class
(); }
74
78
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
机器学习工具包 - 项目文档