MLpp
ml::Kernels::RadialBasisFunction Class Referenceabstract

Radial basis function. More...

#include <Kernels.hpp>

Inheritance diagram for ml::Kernels::RadialBasisFunction:

Public Member Functions

virtual ~RadialBasisFunction ()
 Virtual destructor.
 
virtual double value (double r2) const =0
 Radial basis function of the RBF kernel. More...
 

Detailed Description

Radial basis function.

Member Function Documentation

◆ value()

virtual double ml::Kernels::RadialBasisFunction::value ( double  r2) const
pure virtual

Radial basis function of the RBF kernel.

Parameters
r2Square of the L2 norm of the difference between two feature vectors.
Returns
Kernel value.
Exceptions
std::domain_errorIf r2 < 0.

Implemented in ml::Kernels::GaussianRBF.


The documentation for this class was generated from the following file: