SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
WeightedDegreeRBFKernel.h
浏览该文件的文档.
1 #ifndef _WEIGHTEDDEGREERBFKERNEL_H___
2 #define _WEIGHTEDDEGREERBFKERNEL_H___
3 
4 #include <shogun/lib/config.h>
5 
6 #include <shogun/lib/common.h>
9 
10 namespace shogun
11 {
12 
15 {
16  public:
21 
29  CWeightedDegreeRBFKernel(int32_t size, float64_t width, int32_t degree, int32_t nof_properties);
30 
41  float64_t width, int32_t degree, int32_t nof_properties, int32_t size=10);
42 
43  virtual ~CWeightedDegreeRBFKernel();
44 
51  virtual bool init(CFeatures* l, CFeatures* r);
52 
57  //virtual EKernelType get_kernel_type() { return K_UNKNOWN; }
59 
64  virtual const char* get_name() const { return "WeightedDegreeRBFKernel"; }
65 
66 
71  virtual EFeatureClass get_feature_class() { return C_DENSE; }
72 
77  virtual EFeatureType get_feature_type() { return F_DREAL; }
78 
79 
85  inline bool set_degree(int32_t deg) { degree=deg; return true; }
86 
91  inline int32_t get_degree() { return degree; }
92 
93  protected:
102  virtual float64_t compute(int32_t idx_a, int32_t idx_b);
103 
108  bool init_wd_weights();
109 
110  protected:
113 
115  int32_t degree;
116 
118  int32_t nof_properties;
119 
123 
124 };
125 }
126 #endif /* _WEIGHTEDDEGREERBFKERNEL_H__ */
EKernelType
Definition: Kernel.h:57
EFeatureClass
shogun feature class
Definition: FeatureTypes.h:38
Template class DotKernel is the base class for kernels working on DotFeatures.
Definition: DotKernel.h:31
virtual float64_t compute(int32_t idx_a, int32_t idx_b)
double float64_t
Definition: common.h:50
EFeatureType
shogun feature type
Definition: FeatureTypes.h:19
virtual EFeatureClass get_feature_class()
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
The class Features is the base class of all feature objects.
Definition: Features.h:68
virtual bool init(CFeatures *l, CFeatures *r)
virtual const char * get_name() const

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