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

PLearn::SelectedOutputCostFunction Class Reference

This allows to apply a costfunction on a single output element (and correponding target element) of a larger output vector, rather than on the whole vector. More...

#include <SelectedOutputCostFunction.h>

Inheritance diagram for PLearn::SelectedOutputCostFunction:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SelectedOutputCostFunction ()
 SelectedOutputCostFunction (Ker the_costfunc, int the_outputindex)
 PLEARN_DECLARE_OBJECT (SelectedOutputCostFunction)
virtual string info () const
 returns a bit more informative string about object (default returns classname())

virtual void makeDeepCopyFromShallowCopy (map< const void *, void * > &copies)
virtual real evaluate (const Vec &output, const Vec &target) const
 returns K(x1,x2)


Static Protected Member Functions

void declareOptions (OptionList &ol)
 recognized option are "outputindex" and "costfunc"


Protected Attributes

Ker costfunc
int outputindex

Private Types

typedef Kernel inherited

Detailed Description

This allows to apply a costfunction on a single output element (and correponding target element) of a larger output vector, rather than on the whole vector.

Definition at line 55 of file SelectedOutputCostFunction.h.


Member Typedef Documentation

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

Reimplemented from PLearn::Kernel.

Definition at line 57 of file SelectedOutputCostFunction.h.


Constructor & Destructor Documentation

PLearn::SelectedOutputCostFunction::SelectedOutputCostFunction  )  [inline]
 

Definition at line 64 of file SelectedOutputCostFunction.h.

References costfunc, and outputindex.

PLearn::SelectedOutputCostFunction::SelectedOutputCostFunction Ker  the_costfunc,
int  the_outputindex
[inline]
 

Definition at line 65 of file SelectedOutputCostFunction.h.

References costfunc, and outputindex.


Member Function Documentation

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

recognized option are "outputindex" and "costfunc"

Reimplemented from PLearn::Kernel.

Definition at line 61 of file SelectedOutputCostFunction.cc.

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

real PLearn::SelectedOutputCostFunction::evaluate const Vec output,
const Vec target
const [virtual]
 

returns K(x1,x2)

Implements PLearn::Kernel.

Definition at line 58 of file SelectedOutputCostFunction.cc.

References costfunc, outputindex, PLearn::TVec< T >::subVec(), and PLearn::Vec.

virtual string PLearn::SelectedOutputCostFunction::info  )  const [inline, virtual]
 

returns a bit more informative string about object (default returns classname())

Reimplemented from PLearn::Object.

Definition at line 70 of file SelectedOutputCostFunction.h.

References costfunc, outputindex, and PLearn::tostring().

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

Definition at line 52 of file SelectedOutputCostFunction.cc.

References costfunc, and PLearn::deepCopyField().

PLearn::SelectedOutputCostFunction::PLEARN_DECLARE_OBJECT SelectedOutputCostFunction   ) 
 


Member Data Documentation

Ker PLearn::SelectedOutputCostFunction::costfunc [protected]
 

Definition at line 60 of file SelectedOutputCostFunction.h.

Referenced by evaluate(), info(), makeDeepCopyFromShallowCopy(), and SelectedOutputCostFunction().

int PLearn::SelectedOutputCostFunction::outputindex [protected]
 

Definition at line 61 of file SelectedOutputCostFunction.h.

Referenced by evaluate(), info(), and SelectedOutputCostFunction().


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