GClasses
GClasses::GKernelPolynomial Class Reference

Detailed Description

A polynomial kernel.

#include <GKernelTrick.h>

Inheritance diagram for GClasses::GKernelPolynomial:
GClasses::GKernel

Public Member Functions

 GKernelPolynomial (double offset, unsigned int order)
 
 GKernelPolynomial (GDomNode *pNode)
 
virtual ~GKernelPolynomial ()
 
virtual double apply (const GVec &pA, const GVec &pB)
 Computes (A * B + offset)^order. 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

double m_offset
 
unsigned int m_order
 

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::GKernelPolynomial::GKernelPolynomial ( double  offset,
unsigned int  order 
)
inline
GClasses::GKernelPolynomial::GKernelPolynomial ( GDomNode pNode)
inline
virtual GClasses::GKernelPolynomial::~GKernelPolynomial ( )
inlinevirtual

Member Function Documentation

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

Computes (A * B + offset)^order.

Implements GClasses::GKernel.

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

Returns the name of this kernel.

Implements GClasses::GKernel.

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

Marshalls this object into a DOM.

Implements GClasses::GKernel.

Member Data Documentation

double GClasses::GKernelPolynomial::m_offset
protected
unsigned int GClasses::GKernelPolynomial::m_order
protected