SHOGUN
3.2.1
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
kernel
WaveKernel.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 Sergey Lisitsyn
8
* Copyright (C) 2011 Berlin Institute of Technology and Max-Planck-Society
9
*/
10
11
#include <
shogun/lib/config.h
>
12
13
#ifndef WAVEKERNEL_H_
14
#define WAVEKERNEL_H_
15
16
#include <
shogun/lib/common.h
>
17
#include <
shogun/kernel/Kernel.h
>
18
#include <
shogun/distance/Distance.h
>
19
20
namespace
shogun
21
{
22
23
class
CDistance;
24
35
class
CWaveKernel
:
public
CKernel
36
{
37
public
:
39
CWaveKernel
();
40
46
CWaveKernel
(int32_t cache,
float64_t
theta,
CDistance
* dist);
47
54
CWaveKernel
(
CFeatures
*l,
CFeatures
*r,
float64_t
theta,
CDistance
* dist);
55
61
virtual
bool
init
(
CFeatures
* l,
CFeatures
* r);
62
66
virtual
EKernelType
get_kernel_type
() {
return
K_WAVE
; }
67
71
virtual
EFeatureType
get_feature_type
() {
return
m_distance
->
get_feature_type
(); }
72
76
virtual
EFeatureClass
get_feature_class
() {
return
m_distance
->
get_feature_class
(); }
77
81
virtual
const
char
*
get_name
()
const
{
return
"WaveKernel"
; }
82
83
virtual
~CWaveKernel
();
84
85
protected
:
93
virtual
float64_t
compute
(int32_t idx_a, int32_t idx_b);
94
95
private
:
96
void
init();
97
98
protected
:
99
101
CDistance
*
m_distance
;
102
104
float64_t
m_theta
;
105
};
106
}
107
108
#endif
/* WAVEKERNEL_H_ */
SHOGUN
机器学习工具包 - 项目文档