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

SHOGUN Machine Learning Toolbox - Documentation