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

PLearn::NegOutputCostFunction Class Reference

This simply returns -output[0] (target should usually have a length of 0) This is used for density estimators whose use(x) method typically computes log(p(x)). More...

#include <NegOutputCostFunction.h>

Inheritance diagram for PLearn::NegOutputCostFunction:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NegOutputCostFunction ()
 PLEARN_DECLARE_OBJECT (NegOutputCostFunction)
virtual real evaluate (const Vec &output, const Vec &target) const
 returns K(x1,x2)


Private Types

typedef Kernel inherited

Detailed Description

This simply returns -output[0] (target should usually have a length of 0) This is used for density estimators whose use(x) method typically computes log(p(x)).

Definition at line 55 of file NegOutputCostFunction.h.


Member Typedef Documentation

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

Reimplemented from PLearn::Kernel.

Definition at line 57 of file NegOutputCostFunction.h.


Constructor & Destructor Documentation

PLearn::NegOutputCostFunction::NegOutputCostFunction  )  [inline]
 

Definition at line 60 of file NegOutputCostFunction.h.


Member Function Documentation

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

returns K(x1,x2)

Implements PLearn::Kernel.

Definition at line 54 of file NegOutputCostFunction.cc.

References PLearn::Vec.

PLearn::NegOutputCostFunction::PLEARN_DECLARE_OBJECT NegOutputCostFunction   ) 
 


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