Gaussian radial basis function. More...
#include <Kernels.hpp>
Public Member Functions | |
double | value (double r2) const override |
Radial basis function of the RBF kernel. More... | |
double | gradient (double r2) const override |
Gradient of the radial basis function of the RBF kernel. More... | |
double | second_derivative (double r2) const override |
Second derivative of the radial basis function of the RBF kernel. More... | |
![]() | |
virtual | ~RadialBasisFunction () |
Virtual destructor. | |
Gaussian radial basis function.
Given by the formula f(r2) = exp(-r2), where r2 is the SQUARE of the norm.
|
overridevirtual |
Radial basis function of the RBF kernel.
r2 | Square of the L2 norm of the difference between two feature vectors. |
std::domain_error | If r2 < 0. |
Implements ml::Kernels::RadialBasisFunction.
|
overridevirtual |
Gradient of the radial basis function of the RBF kernel.
r2 | Square of the L2 norm of the difference between two feature vectors. |
std::domain_error | If r2 < 0. |
Implements ml::Kernels::DifferentiableRadialBasisFunction.
|
overridevirtual |
Second derivative of the radial basis function of the RBF kernel.
r2 | Square of the L2 norm of the difference between two feature vectors. |
std::domain_error | If r2 < 0. |
Implements ml::Kernels::DoubleDifferentiableRadialBasisFunction.