SHOGUN  5.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
InverseMultiQuadricKernel.h
Go to the documentation of this file.
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>
20 
21 namespace shogun
22 {
23 
24 class CDistance;
33 {
34 public:
37 
43  CInverseMultiQuadricKernel(int32_t cache, float64_t coef, CDistance* dist);
44 
52 
58  virtual bool init(CFeatures* l, CFeatures* r);
59 
64 
69 
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 
91 
92 protected:
93 
97 
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_ */
virtual EFeatureClass get_feature_class()=0
virtual float64_t compute(int32_t idx_a, int32_t idx_b)
EKernelType
Definition: Kernel.h:57
Class Distance, a base class for all the distances used in the Shogun toolbox.
Definition: Distance.h:87
Class ShogunException defines an exception which is thrown whenever an error inside of shogun occurs...
EFeatureClass
shogun feature class
Definition: FeatureTypes.h:38
double float64_t
Definition: common.h:50
virtual bool init(CFeatures *l, CFeatures *r)
EFeatureType
shogun feature type
Definition: FeatureTypes.h:19
virtual const char * get_name() const
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 EFeatureType get_feature_type()=0
The Kernel base class.
Definition: Kernel.h:159

SHOGUN Machine Learning Toolbox - Documentation