PLearn 0.1
|
returns <x1,x2> More...
#include <DotProductKernel.h>
Public Member Functions | |
DotProductKernel () | |
virtual string | classname () const |
virtual OptionList & | getOptionList () const |
virtual OptionMap & | getOptionMap () const |
virtual RemoteMethodMap & | getRemoteMethodMap () const |
virtual DotProductKernel * | deepCopy (CopiesMap &copies) const |
virtual real | evaluate (const Vec &x1, const Vec &x2) const |
** Subclasses must override this method ** | |
virtual real | evaluate_i_j (int i, int j) const |
returns evaluate(data(i),data(j)) | |
virtual real | evaluate_i_x (int i, const Vec &x, real squared_norm_of_x=-1) const |
returns evaluate(data(i),x) | |
virtual real | evaluate_x_i (const Vec &x, int i, real squared_norm_of_x=-1) const |
returns evaluate(x,data(i)) | |
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_ |
Private Types | |
typedef Kernel | inherited |
returns <x1,x2>
Definition at line 54 of file DotProductKernel.h.
typedef Kernel PLearn::DotProductKernel::inherited [private] |
Reimplemented from PLearn::Kernel.
Definition at line 56 of file DotProductKernel.h.
PLearn::DotProductKernel::DotProductKernel | ( | ) | [inline] |
Definition at line 59 of file DotProductKernel.h.
{}
string PLearn::DotProductKernel::_classname_ | ( | ) | [static] |
Reimplemented from PLearn::Kernel.
Definition at line 52 of file DotProductKernel.cc.
OptionList & PLearn::DotProductKernel::_getOptionList_ | ( | ) | [static] |
Reimplemented from PLearn::Kernel.
Definition at line 52 of file DotProductKernel.cc.
RemoteMethodMap & PLearn::DotProductKernel::_getRemoteMethodMap_ | ( | ) | [static] |
Reimplemented from PLearn::Kernel.
Definition at line 52 of file DotProductKernel.cc.
Reimplemented from PLearn::Kernel.
Definition at line 52 of file DotProductKernel.cc.
Object * PLearn::DotProductKernel::_new_instance_for_typemap_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 52 of file DotProductKernel.cc.
StaticInitializer DotProductKernel::_static_initializer_ & PLearn::DotProductKernel::_static_initialize_ | ( | ) | [static] |
Reimplemented from PLearn::Kernel.
Definition at line 52 of file DotProductKernel.cc.
string PLearn::DotProductKernel::classname | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 52 of file DotProductKernel.cc.
static const PPath& PLearn::DotProductKernel::declaringFile | ( | ) | [inline, static] |
Reimplemented from PLearn::Kernel.
Definition at line 61 of file DotProductKernel.h.
DotProductKernel * PLearn::DotProductKernel::deepCopy | ( | CopiesMap & | copies | ) | const [virtual] |
Reimplemented from PLearn::Kernel.
Definition at line 52 of file DotProductKernel.cc.
** Subclasses must override this method **
returns K(x1,x2)
Implements PLearn::Kernel.
Definition at line 54 of file DotProductKernel.cc.
References PLearn::dot().
{ return dot(x1,x2); }
returns evaluate(data(i),data(j))
Reimplemented from PLearn::Kernel.
Definition at line 58 of file DotProductKernel.cc.
{ return data->dot(i,j,data_inputsize); }
real PLearn::DotProductKernel::evaluate_i_x | ( | int | i, |
const Vec & | x, | ||
real | squared_norm_of_x = -1 |
||
) | const [virtual] |
returns evaluate(data(i),x)
Reimplemented from PLearn::Kernel.
Definition at line 62 of file DotProductKernel.cc.
real PLearn::DotProductKernel::evaluate_x_i | ( | const Vec & | x, |
int | i, | ||
real | squared_norm_of_x = -1 |
||
) | const [virtual] |
returns evaluate(x,data(i))
Reimplemented from PLearn::Kernel.
Definition at line 66 of file DotProductKernel.cc.
OptionList & PLearn::DotProductKernel::getOptionList | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 52 of file DotProductKernel.cc.
OptionMap & PLearn::DotProductKernel::getOptionMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 52 of file DotProductKernel.cc.
RemoteMethodMap & PLearn::DotProductKernel::getRemoteMethodMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 52 of file DotProductKernel.cc.
Reimplemented from PLearn::Kernel.
Definition at line 61 of file DotProductKernel.h.