PLearn 0.1
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Types
PLearn::DirectNegativeCostFunction Class Reference

#include <DirectNegativeCostFunction.h>

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

List of all members.

Public Member Functions

 DirectNegativeCostFunction ()
virtual string classname () const
virtual OptionListgetOptionList () const
virtual OptionMapgetOptionMap () const
virtual RemoteMethodMapgetRemoteMethodMap () 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 PPathdeclaringFile ()

Static Public Attributes

static StaticInitializer _static_initializer_

Private Types

typedef Kernel inherited

Detailed Description

Definition at line 51 of file DirectNegativeCostFunction.h.


Member Typedef Documentation

Reimplemented from PLearn::Kernel.

Definition at line 53 of file DirectNegativeCostFunction.h.


Constructor & Destructor Documentation

PLearn::DirectNegativeCostFunction::DirectNegativeCostFunction ( ) [inline]

Definition at line 56 of file DirectNegativeCostFunction.h.

    {}

Member Function Documentation

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.

bool PLearn::DirectNegativeCostFunction::_isa_ ( const Object o) [static]

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];
}

Here is the call graph for this function:

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())

Returns:
Information about the object

Reimplemented from PLearn::Object.

Definition at line 61 of file DirectNegativeCostFunction.h.

    { return "direct_negative_cost_function"; }

Member Data Documentation

Reimplemented from PLearn::Kernel.

Definition at line 59 of file DirectNegativeCostFunction.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines