ModErn Text Analysis
META Enumerates Textual Applications
radial_basis.h
Go to the documentation of this file.
1 
9 #include "meta.h"
10 
11 #ifndef META_CLASSIFY_KERNEL_RADIAL_BASIS_H_
12 #define META_CLASSIFY_KERNEL_RADIAL_BASIS_H_
13 
14 namespace meta
15 {
16 namespace classify
17 {
18 namespace kernel
19 {
20 
29 {
30  public:
36  radial_basis(double gamma) : gamma_{gamma}
37  {
38  /* nothing */
39  }
40 
44  template <class PostingsData>
45  double operator()(const PostingsData& first,
46  const PostingsData& second) const;
47 
48  private:
53  double gamma_;
54 };
55 }
56 }
57 }
59 #endif
Contains top-level namespace documentation for the META toolkit.
double operator()(const PostingsData &first, const PostingsData &second) const
Computes the value of .
Definition: radial_basis.tcc:19
A radial basis function kernel for linear classifiers to adapt them to data that is not linearly sepa...
Definition: radial_basis.h:28
The ModErn Text Analysis toolkit is a suite of natural language processing, classification, information retreival, data mining, and other applications of text processing.
Definition: analyzer.h:24
double gamma_
, or equivalently , the parameter for the radial basis function.
Definition: radial_basis.h:53
radial_basis(double gamma)
Constructs a new radial_basis kernel with the given parameter.
Definition: radial_basis.h:36