| 
    PLearn 0.1 
   | 
 
returns exp(-sum_i[(phi_i*(x1_i - x2_i))^2]/sigma^2) More...
#include <ScaledGaussianKernel.h>


Public Member Functions | |
| ScaledGaussianKernel () | |
| ScaledGaussianKernel (real the_sigma, Vec the_phi) | |
| virtual string | classname () const | 
| virtual OptionList & | getOptionList () const | 
| virtual OptionMap & | getOptionMap () const | 
| virtual RemoteMethodMap & | getRemoteMethodMap () const | 
| virtual ScaledGaussianKernel * | deepCopy (CopiesMap &copies) const | 
| virtual void | makeDeepCopyFromShallowCopy (CopiesMap &copies) | 
| Does the necessary operations to transform a shallow copy (this) into a deep copy by deep-copying all the members that need to be.   | |
| virtual real | evaluate (const Vec &x1, const Vec &x2) const | 
| ** Subclasses must override this method **   | |
Static Public Member Functions | |
| static string | _classname_ () | 
| static OptionList & | _getOptionList_ () | 
| static RemoteMethodMap & | _getRemoteMethodMap_ () | 
| static Object * | _new_instance_for_typemap_ () | 
| static bool | _isa_ (const Object *o) | 
| static void | _static_initialize_ () | 
| static const PPath & | declaringFile () | 
Static Public Attributes | |
| static StaticInitializer | _static_initializer_ | 
Static Protected Member Functions | |
| static void | declareOptions (OptionList &ol) | 
| recognized option is "sigma"   | |
Protected Attributes | |
| real | sigma | 
| Vec | phi | 
Private Types | |
| typedef Kernel | inherited | 
returns exp(-sum_i[(phi_i*(x1_i - x2_i))^2]/sigma^2)
Definition at line 55 of file ScaledGaussianKernel.h.
typedef Kernel PLearn::ScaledGaussianKernel::inherited [private] | 
        
Reimplemented from PLearn::Kernel.
Definition at line 57 of file ScaledGaussianKernel.h.
| PLearn::ScaledGaussianKernel::ScaledGaussianKernel | ( | ) |  [inline] | 
        
Definition at line 64 of file ScaledGaussianKernel.h.
Definition at line 66 of file ScaledGaussianKernel.h.
| string PLearn::ScaledGaussianKernel::_classname_ | ( | ) |  [static] | 
        
Reimplemented from PLearn::Kernel.
Definition at line 49 of file ScaledGaussianKernel.cc.
| OptionList & PLearn::ScaledGaussianKernel::_getOptionList_ | ( | ) |  [static] | 
        
Reimplemented from PLearn::Kernel.
Definition at line 49 of file ScaledGaussianKernel.cc.
| RemoteMethodMap & PLearn::ScaledGaussianKernel::_getRemoteMethodMap_ | ( | ) |  [static] | 
        
Reimplemented from PLearn::Kernel.
Definition at line 49 of file ScaledGaussianKernel.cc.
Reimplemented from PLearn::Kernel.
Definition at line 49 of file ScaledGaussianKernel.cc.
| Object * PLearn::ScaledGaussianKernel::_new_instance_for_typemap_ | ( | ) |  [static] | 
        
Reimplemented from PLearn::Object.
Definition at line 49 of file ScaledGaussianKernel.cc.
| StaticInitializer ScaledGaussianKernel::_static_initializer_ & PLearn::ScaledGaussianKernel::_static_initialize_ | ( | ) |  [static] | 
        
Reimplemented from PLearn::Kernel.
Definition at line 49 of file ScaledGaussianKernel.cc.
| string PLearn::ScaledGaussianKernel::classname | ( | ) |  const [virtual] | 
        
Reimplemented from PLearn::Object.
Definition at line 49 of file ScaledGaussianKernel.cc.
| 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::OptionBase::buildoption, PLearn::declareOption(), phi, and sigma.
{
    declareOption(ol, "sigma", &ScaledGaussianKernel::sigma, OptionBase::buildoption,
                  "TODO: Some comments");
    declareOption(ol, "phi", &ScaledGaussianKernel::phi, OptionBase::buildoption, "");
    inherited::declareOptions(ol);
}

| static const PPath& PLearn::ScaledGaussianKernel::declaringFile | ( | ) |  [inline, static] | 
        
| ScaledGaussianKernel * PLearn::ScaledGaussianKernel::deepCopy | ( | CopiesMap & | copies | ) |  const [virtual] | 
        
Reimplemented from PLearn::Kernel.
Definition at line 49 of file ScaledGaussianKernel.cc.
** Subclasses must override this method **
returns K(x1,x2)
Implements PLearn::Kernel.
Definition at line 57 of file ScaledGaussianKernel.cc.
References PLearn::exp(), PLearn::square(), and PLearn::weighted_powdistance().

| OptionList & PLearn::ScaledGaussianKernel::getOptionList | ( | ) |  const [virtual] | 
        
Reimplemented from PLearn::Object.
Definition at line 49 of file ScaledGaussianKernel.cc.
| OptionMap & PLearn::ScaledGaussianKernel::getOptionMap | ( | ) |  const [virtual] | 
        
Reimplemented from PLearn::Object.
Definition at line 49 of file ScaledGaussianKernel.cc.
| RemoteMethodMap & PLearn::ScaledGaussianKernel::getRemoteMethodMap | ( | ) |  const [virtual] | 
        
Reimplemented from PLearn::Object.
Definition at line 49 of file ScaledGaussianKernel.cc.
| void PLearn::ScaledGaussianKernel::makeDeepCopyFromShallowCopy | ( | CopiesMap & | copies | ) |  [virtual] | 
        
Does the necessary operations to transform a shallow copy (this) into a deep copy by deep-copying all the members that need to be.
This needs to be overridden by every class that adds "complex" data members to the class, such as Vec, Mat, PP<Something>, etc. Typical implementation:
void CLASS_OF_THIS::makeDeepCopyFromShallowCopy(CopiesMap& copies) { inherited::makeDeepCopyFromShallowCopy(copies); deepCopyField(complex_data_member1, copies); deepCopyField(complex_data_member2, copies); ... }
| copies | A map used by the deep-copy mechanism to keep track of already-copied objects. | 
Reimplemented from PLearn::Kernel.
Definition at line 51 of file ScaledGaussianKernel.cc.
References PLearn::deepCopyField().
{
    inherited::makeDeepCopyFromShallowCopy(copies);
    deepCopyField(phi, copies);
}

Reimplemented from PLearn::Kernel.
Definition at line 70 of file ScaledGaussianKernel.h.
Vec PLearn::ScaledGaussianKernel::phi [protected] | 
        
Definition at line 61 of file ScaledGaussianKernel.h.
Referenced by declareOptions().
real PLearn::ScaledGaussianKernel::sigma [protected] | 
        
Definition at line 60 of file ScaledGaussianKernel.h.
Referenced by declareOptions().
 1.7.4