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

PLearn::DilogarithmVariable Class Reference

This is the primitive of a sigmoid: log(1+exp(x)). More...

#include <DilogarithmVariable.h>

Inheritance diagram for PLearn::DilogarithmVariable:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DilogarithmVariable ()
 Default constructor for persistence.

 DilogarithmVariable (Variable *input)
 PLEARN_DECLARE_OBJECT (DilogarithmVariable)
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

Detailed Description

This is the primitive of a sigmoid: log(1+exp(x)).

Definition at line 55 of file DilogarithmVariable.h.


Member Typedef Documentation

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

Reimplemented from PLearn::UnaryVariable.

Definition at line 57 of file DilogarithmVariable.h.

Referenced by DilogarithmVariable().


Constructor & Destructor Documentation

PLearn::DilogarithmVariable::DilogarithmVariable  )  [inline]
 

Default constructor for persistence.

Definition at line 61 of file DilogarithmVariable.h.

PLearn::DilogarithmVariable::DilogarithmVariable Variable input  ) 
 

Definition at line 58 of file DilogarithmVariable.cc.

References inherited.


Member Function Documentation

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

Implements PLearn::Variable.

Definition at line 85 of file DilogarithmVariable.cc.

References PLearn::Variable::nelems().

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

compute output given input

Implements PLearn::Variable.

Definition at line 72 of file DilogarithmVariable.cc.

References PLearn::dilogarithm(), PLearn::is_missing(), PLearn::Variable::nelems(), and PLWARNING.

PLearn::DilogarithmVariable::PLEARN_DECLARE_OBJECT DilogarithmVariable   ) 
 

void PLearn::DilogarithmVariable::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 DilogarithmVariable.cc.

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

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

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

Reimplemented from PLearn::Variable.

Definition at line 96 of file DilogarithmVariable.cc.

References PLERROR.


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