GClasses
GClasses::GKernelAdd Class Reference

Detailed Description

An addition kernel.

#include <GKernelTrick.h>

Inheritance diagram for GClasses::GKernelAdd:
GClasses::GKernel

Public Member Functions

 GKernelAdd (GKernel *pK1, GKernel *pK2)
 Takes ownership of pK1 and pK2. More...
 
 GKernelAdd (GDomNode *pNode)
 
virtual ~GKernelAdd ()
 
virtual double apply (const GVec &pA, const GVec &pB)
 Computes K1(A, B) + K2(A, B) More...
 
virtual const char * name () const
 Returns the name of this kernel. More...
 
virtual GDomNodeserialize (GDom *pDoc)
 Marshalls this object into a DOM. More...
 
- Public Member Functions inherited from GClasses::GKernel
 GKernel ()
 
virtual ~GKernel ()
 

Protected Attributes

GKernelm_pK1
 
GKernelm_pK2
 

Additional Inherited Members

- Static Public Member Functions inherited from GClasses::GKernel
static GKerneldeserialize (GDomNode *pNode)
 Deserializes a kernel object. More...
 
static GKernelkernelComplex1 ()
 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
GDomNodemakeBaseNode (GDom *pDoc) const
 Helper method used by the serialize methods in child classes. More...
 

Constructor & Destructor Documentation

GClasses::GKernelAdd::GKernelAdd ( GKernel pK1,
GKernel pK2 
)
inline

Takes ownership of pK1 and pK2.

GClasses::GKernelAdd::GKernelAdd ( GDomNode pNode)
inline
virtual GClasses::GKernelAdd::~GKernelAdd ( )
inlinevirtual

Member Function Documentation

virtual double GClasses::GKernelAdd::apply ( const GVec pA,
const GVec pB 
)
inlinevirtual

Computes K1(A, B) + K2(A, B)

Implements GClasses::GKernel.

virtual const char* GClasses::GKernelAdd::name ( ) const
inlinevirtual

Returns the name of this kernel.

Implements GClasses::GKernel.

virtual GDomNode* GClasses::GKernelAdd::serialize ( GDom pDoc)
inlinevirtual

Marshalls this object into a DOM.

Implements GClasses::GKernel.

Member Data Documentation

GKernel* GClasses::GKernelAdd::m_pK1
protected
GKernel* GClasses::GKernelAdd::m_pK2
protected