GClasses
|
A translation kernel.
#include <GKernelTrick.h>
Public Member Functions | |
GKernelTranslate (GKernel *pK, double value) | |
Takes ownership of pK. More... | |
GKernelTranslate (GDomNode *pNode) | |
virtual | ~GKernelTranslate () |
virtual double | apply (const GVec &pA, const GVec &pB) |
Computes K(A, B) + value. More... | |
virtual const char * | name () const |
Returns the name of this kernel. More... | |
virtual GDomNode * | serialize (GDom *pDoc) |
Marshalls this object into a DOM. More... | |
Public Member Functions inherited from GClasses::GKernel | |
GKernel () | |
virtual | ~GKernel () |
Protected Attributes | |
GKernel * | m_pK |
double | m_value |
Additional Inherited Members | |
Static Public Member Functions inherited from GClasses::GKernel | |
static GKernel * | deserialize (GDomNode *pNode) |
Deserializes a kernel object. More... | |
static GKernel * | kernelComplex1 () |
Returns a complex kernel made by combining several other kernels. This might be used to exercise kernel functionality or to test non-linear metrics. The caller is responsible to delete the object this returns. More... | |
Protected Member Functions inherited from GClasses::GKernel | |
GDomNode * | makeBaseNode (GDom *pDoc) const |
Helper method used by the serialize methods in child classes. More... | |
|
inline |
Takes ownership of pK.
|
inline |
|
inlinevirtual |
Computes K(A, B) + value.
Implements GClasses::GKernel.
|
inlinevirtual |
Returns the name of this kernel.
Implements GClasses::GKernel.
Marshalls this object into a DOM.
Implements GClasses::GKernel.
|
protected |
|
protected |