Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::ScaledGaussianKernel Class Reference

returns exp(-sum_i[(phi_i*(x1_i - x2_i))^2]/sigma^2) More...

#include <ScaledGaussianKernel.h>

Inheritance diagram for PLearn::ScaledGaussianKernel:

Inheritance graph
[legend]
Collaboration diagram for PLearn::ScaledGaussianKernel:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ScaledGaussianKernel ()
 ScaledGaussianKernel (real the_sigma, Vec the_phi)
 PLEARN_DECLARE_OBJECT (ScaledGaussianKernel)
virtual void makeDeepCopyFromShallowCopy (map< const void *, void * > &copies)
virtual real evaluate (const Vec &x1, const Vec &x2) const
 returns K(x1,x2)


Static Protected Member Functions

void declareOptions (OptionList &ol)
 recognized option is "sigma"


Protected Attributes

real sigma
Vec phi

Private Types

typedef Kernel inherited

Detailed Description

returns exp(-sum_i[(phi_i*(x1_i - x2_i))^2]/sigma^2)

Definition at line 55 of file ScaledGaussianKernel.h.


Member Typedef Documentation

typedef Kernel PLearn::ScaledGaussianKernel::inherited [private]
 

Reimplemented from PLearn::Kernel.

Definition at line 57 of file ScaledGaussianKernel.h.


Constructor & Destructor Documentation

PLearn::ScaledGaussianKernel::ScaledGaussianKernel  )  [inline]
 

Definition at line 64 of file ScaledGaussianKernel.h.

References phi, and sigma.

PLearn::ScaledGaussianKernel::ScaledGaussianKernel real  the_sigma,
Vec  the_phi
[inline]
 

Definition at line 66 of file ScaledGaussianKernel.h.

References phi, and sigma.


Member Function Documentation

void PLearn::ScaledGaussianKernel::declareOptions OptionList ol  )  [static, protected]
 

recognized option is "sigma"

Reimplemented from PLearn::Kernel.

Definition at line 60 of file ScaledGaussianKernel.cc.

References PLearn::declareOption(), and PLearn::OptionList.

real PLearn::ScaledGaussianKernel::evaluate const Vec x1,
const Vec x2
const [virtual]
 

returns K(x1,x2)

Implements PLearn::Kernel.

Definition at line 57 of file ScaledGaussianKernel.cc.

References PLearn::exp(), phi, sigma, PLearn::square(), and PLearn::weighted_powdistance().

void PLearn::ScaledGaussianKernel::makeDeepCopyFromShallowCopy map< const void *, void * > &  copies  )  [virtual]
 

Definition at line 51 of file ScaledGaussianKernel.cc.

References PLearn::deepCopyField(), and phi.

PLearn::ScaledGaussianKernel::PLEARN_DECLARE_OBJECT ScaledGaussianKernel   ) 
 


Member Data Documentation

Vec PLearn::ScaledGaussianKernel::phi [protected]
 

Definition at line 61 of file ScaledGaussianKernel.h.

Referenced by evaluate(), makeDeepCopyFromShallowCopy(), and ScaledGaussianKernel().

real PLearn::ScaledGaussianKernel::sigma [protected]
 

Definition at line 60 of file ScaledGaussianKernel.h.

Referenced by evaluate(), and ScaledGaussianKernel().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:23:42 2004 for PLearn by doxygen 1.3.7