SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GaussianCompactKernel.h
Go to the documentation of this file.
1 #ifndef _GAUSSIANCOMPACTKERNEL_H___
2 #define _GAUSSIANCOMPACTKERNEL_H___
3 
5 
6 namespace shogun
7 {
8 class CDotFeatures;
23 {
24  public:
27 
33  CGaussianCompactKernel(int32_t size, float64_t width);
34 
43  float64_t width, int32_t size=10);
44 
45  /* destructor */
46  virtual ~CGaussianCompactKernel();
47 
53  {
54  return K_GAUSSIANCOMPACT;
55  }
56 
61  virtual const char* get_name() const
62  {
63  return "GaussianCompactKernel";
64  }
65 
66  protected:
75  virtual float64_t compute(int32_t idx_a, int32_t idx_b);
76 
77 };
78 }
79 #endif /* _GAUSSIANCOMPACTKERNEL_H__ */
EKernelType
Definition: Kernel.h:57
Features that support dot products among other operations.
Definition: DotFeatures.h:44
virtual float64_t compute(int32_t idx_a, int32_t idx_b)
virtual const char * get_name() const
The compact version as given in Bart Hamers' thesis Kernel Models for Large Scale Applications (Eq...
double float64_t
Definition: common.h:50
The well known Gaussian kernel (swiss army knife for SVMs) computed on CDotFeatures.
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
virtual EKernelType get_kernel_type()

SHOGUN Machine Learning Toolbox - Documentation