PLearn 0.1
|
#include <DirectNegativeCostFunction.h>
Public Member Functions | |
DirectNegativeCostFunction () | |
virtual string | classname () const |
virtual OptionList & | getOptionList () const |
virtual OptionMap & | getOptionMap () const |
virtual RemoteMethodMap & | getRemoteMethodMap () const |
virtual DirectNegativeCostFunction * | deepCopy (CopiesMap &copies) const |
virtual string | info () const |
Returns a bit more informative string about object (default returns classname()) | |
virtual real | evaluate (const Vec &output, const Vec &target) 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_ |
Private Types | |
typedef Kernel | inherited |
Definition at line 51 of file DirectNegativeCostFunction.h.
typedef Kernel PLearn::DirectNegativeCostFunction::inherited [private] |
Reimplemented from PLearn::Kernel.
Definition at line 53 of file DirectNegativeCostFunction.h.
PLearn::DirectNegativeCostFunction::DirectNegativeCostFunction | ( | ) | [inline] |
Definition at line 56 of file DirectNegativeCostFunction.h.
{}
string PLearn::DirectNegativeCostFunction::_classname_ | ( | ) | [static] |
Reimplemented from PLearn::Kernel.
Definition at line 49 of file DirectNegativeCostFunction.cc.
OptionList & PLearn::DirectNegativeCostFunction::_getOptionList_ | ( | ) | [static] |
Reimplemented from PLearn::Kernel.
Definition at line 49 of file DirectNegativeCostFunction.cc.
RemoteMethodMap & PLearn::DirectNegativeCostFunction::_getRemoteMethodMap_ | ( | ) | [static] |
Reimplemented from PLearn::Kernel.
Definition at line 49 of file DirectNegativeCostFunction.cc.
Reimplemented from PLearn::Kernel.
Definition at line 49 of file DirectNegativeCostFunction.cc.
Object * PLearn::DirectNegativeCostFunction::_new_instance_for_typemap_ | ( | ) | [static] |
Reimplemented from PLearn::Object.
Definition at line 49 of file DirectNegativeCostFunction.cc.
StaticInitializer DirectNegativeCostFunction::_static_initializer_ & PLearn::DirectNegativeCostFunction::_static_initialize_ | ( | ) | [static] |
Reimplemented from PLearn::Kernel.
Definition at line 49 of file DirectNegativeCostFunction.cc.
string PLearn::DirectNegativeCostFunction::classname | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 49 of file DirectNegativeCostFunction.cc.
static const PPath& PLearn::DirectNegativeCostFunction::declaringFile | ( | ) | [inline, static] |
Reimplemented from PLearn::Kernel.
Definition at line 59 of file DirectNegativeCostFunction.h.
{ return "direct_negative_cost_function"; }
DirectNegativeCostFunction * PLearn::DirectNegativeCostFunction::deepCopy | ( | CopiesMap & | copies | ) | const [virtual] |
Reimplemented from PLearn::Kernel.
Definition at line 49 of file DirectNegativeCostFunction.cc.
real PLearn::DirectNegativeCostFunction::evaluate | ( | const Vec & | x1, |
const Vec & | x2 | ||
) | const [virtual] |
** Subclasses must override this method **
returns K(x1,x2)
Implements PLearn::Kernel.
Definition at line 51 of file DirectNegativeCostFunction.cc.
References PLearn::TVec< T >::length(), and PLERROR.
{ if(output.length() != 1) PLERROR("Output should be a scalar"); return -output[0]; }
OptionList & PLearn::DirectNegativeCostFunction::getOptionList | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 49 of file DirectNegativeCostFunction.cc.
OptionMap & PLearn::DirectNegativeCostFunction::getOptionMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 49 of file DirectNegativeCostFunction.cc.
RemoteMethodMap & PLearn::DirectNegativeCostFunction::getRemoteMethodMap | ( | ) | const [virtual] |
Reimplemented from PLearn::Object.
Definition at line 49 of file DirectNegativeCostFunction.cc.
virtual string PLearn::DirectNegativeCostFunction::info | ( | ) | const [inline, virtual] |
Returns a bit more informative string about object (default returns classname())
Reimplemented from PLearn::Object.
Definition at line 61 of file DirectNegativeCostFunction.h.
{ return "direct_negative_cost_function"; }
Reimplemented from PLearn::Kernel.
Definition at line 59 of file DirectNegativeCostFunction.h.