SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
MultiquadricKernel.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 Joanna Stocka
8  * Copyright (C) 2007-2011 Fraunhofer Institute FIRST and Max-Planck-Society
9  */
10 
11 #include <shogun/lib/config.h>
12 
13 #ifndef MULTIQUADRIC_H_
14 #define MULTIQUADRIC_H_
15 
16 #include <shogun/lib/common.h>
17 #include <shogun/kernel/Kernel.h>
19 
20 namespace shogun
21 {
22 
23 class CDistance;
31 {
32 public:
35 
41  CMultiquadricKernel(int32_t cache, float64_t coef, CDistance* dist);
42 
50 
56  virtual bool init(CFeatures* l, CFeatures* r);
57 
62 
67 
72 
76  virtual const char* get_name() const { return "MultiquadricKernel"; }
77 
81  inline float64_t get_coef() { return m_coef; }
82 
86  inline void set_coef(float64_t value) { m_coef = value; }
87 
88  virtual ~CMultiquadricKernel();
89 
90 protected:
98  virtual float64_t compute(int32_t idx_a, int32_t idx_b);
99 
100 private:
101  void init();
102 
103 protected:
104 
107 
110 
111 };
112 }
113 
114 #endif /* MULTIQUADRIC_H_ */
virtual float64_t compute(int32_t idx_a, int32_t idx_b)
virtual EFeatureClass get_feature_class()=0
float64_t m_coef
theta parameter of kernel - coefficient
EKernelType
Definition: Kernel.h:57
Class Distance, a base class for all the distances used in the Shogun toolbox.
Definition: Distance.h:81
virtual EFeatureClass get_feature_class()
EFeatureClass
shogun feature class
Definition: FeatureTypes.h:38
double float64_t
Definition: common.h:50
void set_coef(float64_t value)
EFeatureType
shogun feature type
Definition: FeatureTypes.h:19
virtual bool init(CFeatures *l, CFeatures *r)
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
virtual EFeatureType get_feature_type()
virtual EKernelType get_kernel_type()
The class Features is the base class of all feature objects.
Definition: Features.h:68
CDistance * m_distance
distance to be used
virtual EFeatureType get_feature_type()=0
The Kernel base class.
Definition: Kernel.h:158
virtual const char * get_name() const

SHOGUN 机器学习工具包 - 项目文档