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

PLearn::HardSlopeVariable Class Reference

#include <HardSlopeVariable.h>

Inheritance diagram for PLearn::HardSlopeVariable:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HardSlopeVariable ()
 Default constructor for persistence.

 HardSlopeVariable (Variable *x, Variable *left, Variable *right)
 PLEARN_DECLARE_OBJECT (HardSlopeVariable)
virtual void recomputeSize (int &l, int &w) const
 Recomputes the length l and width w that this variable should have, according to its parent variables.

virtual void fprop ()
 compute output given input

virtual void bprop ()
virtual void symbolicBprop ()
 compute a piece of new Var graph that represents the symbolic derivative of this Var


Private Types

typedef NaryVariable inherited

Member Typedef Documentation

typedef NaryVariable PLearn::HardSlopeVariable::inherited [private]
 

Reimplemented from PLearn::NaryVariable.

Definition at line 58 of file HardSlopeVariable.h.

Referenced by HardSlopeVariable().


Constructor & Destructor Documentation

PLearn::HardSlopeVariable::HardSlopeVariable  )  [inline]
 

Default constructor for persistence.

Definition at line 62 of file HardSlopeVariable.h.

PLearn::HardSlopeVariable::HardSlopeVariable Variable x,
Variable left,
Variable right
 

Definition at line 58 of file HardSlopeVariable.cc.

References inherited, PLearn::left(), PLearn::right(), and x.


Member Function Documentation

void PLearn::HardSlopeVariable::bprop  )  [virtual]
 

Implements PLearn::Variable.

Definition at line 112 of file HardSlopeVariable.cc.

References PLearn::left(), PLearn::VarArray::nelems(), PLearn::Variable::nelems(), PLearn::right(), and x.

void PLearn::HardSlopeVariable::fprop  )  [virtual]
 

compute output given input

Implements PLearn::Variable.

Definition at line 85 of file HardSlopeVariable.cc.

References PLearn::hard_slope(), PLearn::left(), PLearn::VarArray::nelems(), PLearn::Variable::nelems(), PLearn::right(), and x.

PLearn::HardSlopeVariable::PLEARN_DECLARE_OBJECT HardSlopeVariable   ) 
 

void PLearn::HardSlopeVariable::recomputeSize int l,
int w
const [virtual]
 

Recomputes the length l and width w that this variable should have, according to its parent variables.

This is used for ex. by sizeprop() The default version stupidly returns the current dimensions, so make sure to overload it in subclasses if this is not appropriate.

Reimplemented from PLearn::Variable.

Definition at line 65 of file HardSlopeVariable.cc.

References PLearn::TVec< Var >::length(), PLERROR, and PLearn::TVec< Var >::size().

void PLearn::HardSlopeVariable::symbolicBprop  )  [virtual]
 

compute a piece of new Var graph that represents the symbolic derivative of this Var

Reimplemented from PLearn::Variable.

Definition at line 144 of file HardSlopeVariable.cc.

References PLERROR.


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