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

PLearn::ErfVariable Class Reference

#include <ErfVariable.h>

Inheritance diagram for PLearn::ErfVariable:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ErfVariable ()
 Default constructor for persistence.

 ErfVariable (Variable *input)
 PLEARN_DECLARE_OBJECT (ErfVariable)
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 UnaryVariable inherited

Member Typedef Documentation

typedef UnaryVariable PLearn::ErfVariable::inherited [private]
 

Reimplemented from PLearn::UnaryVariable.

Definition at line 54 of file ErfVariable.h.

Referenced by ErfVariable().


Constructor & Destructor Documentation

PLearn::ErfVariable::ErfVariable  )  [inline]
 

Default constructor for persistence.

Definition at line 58 of file ErfVariable.h.

PLearn::ErfVariable::ErfVariable Variable input  ) 
 

Definition at line 59 of file ErfVariable.cc.

References inherited.


Member Function Documentation

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

Implements PLearn::Variable.

Definition at line 79 of file ErfVariable.cc.

References PLearn::exp(), PLearn::Variable::nelems(), Pi, and PLearn::sqrt().

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

compute output given input

Implements PLearn::Variable.

Definition at line 72 of file ErfVariable.cc.

References PLearn::Variable::nelems(), and PLearn::pl_erf().

PLearn::ErfVariable::PLEARN_DECLARE_OBJECT ErfVariable   ) 
 

void PLearn::ErfVariable::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 63 of file ErfVariable.cc.

References PLearn::Var::length(), and PLearn::Var::width().

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

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

Reimplemented from PLearn::Variable.

Definition at line 87 of file ErfVariable.cc.

References PLearn::exp(), Pi, PLearn::sqrt(), and PLearn::square().


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