GClasses
|
The base class for kernel functions. Classes which implement this must provide an "apply" method that applies the kernel to two vectors. Kernels may be combined together to form a more complex kernel, to which the kernel trick will still apply. More...
#include <GKernelTrick.h>
Public Member Functions | |
GKernel () | |
virtual | ~GKernel () |
virtual double | apply (const double *pA, const double *pB)=0 |
Applies the kernel to the two specified vectors. |
The base class for kernel functions. Classes which implement this must provide an "apply" method that applies the kernel to two vectors. Kernels may be combined together to form a more complex kernel, to which the kernel trick will still apply.
GClasses::GKernel::GKernel | ( | ) | [inline] |
virtual GClasses::GKernel::~GKernel | ( | ) | [inline, virtual] |
virtual double GClasses::GKernel::apply | ( | const double * | pA, |
const double * | pB | ||
) | [pure virtual] |
Applies the kernel to the two specified vectors.
Implemented in GClasses::GKernelIdentity, GClasses::GKernelPolynomial, GClasses::GKernelGaussianRBF, GClasses::GKernelTranslate, GClasses::GKernelScale, GClasses::GKernelAdd, GClasses::GKernelMultiply, GClasses::GKernelPow, GClasses::GKernelExp, and GClasses::GKernelNormalize.