SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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_ */

SHOGUN Machine Learning Toolbox - Documentation