Abstract R^D kernel interface. More...
#include <Kernels.hpp>
Public Member Functions | |
virtual | ~Kernel () |
Virtual destructor. | |
virtual double | value (const Eigen::Ref< const Eigen::VectorXd > x1, const Eigen::Ref< const Eigen::VectorXd > x2) const =0 |
Value of the kernel \( K(\vec{x}_1, \vec{x}_2) \). More... | |
virtual unsigned int | dim () const =0 |
Dimension of the feature space. | |
Protected Member Functions | |
void | validate_arguments (const Eigen::Ref< const Eigen::VectorXd > x1, const Eigen::Ref< const Eigen::VectorXd > x2) const |
Abstract R^D kernel interface.
A kernel is a symmetric, positive-definite function \( R^D \times R^D \rightarrow R \).
|
pure virtual |
Value of the kernel \( K(\vec{x}_1, \vec{x}_2) \).
[in] | x1 | First feature vector. |
[in] | x2 | Second feature vector. |
Implemented in ml::Kernels::RBFKernel< RBF >, and ml::Kernels::RBFKernel< DifferentiableRadialBasisFunction >.