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

PLearn::SoftSlopeIntegralVariable Class Reference

#include <SoftSlopeIntegralVariable.h>

Inheritance diagram for PLearn::SoftSlopeIntegralVariable:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SoftSlopeIntegralVariable ()
 Default constructor for persistence.

 SoftSlopeIntegralVariable (Variable *smoothness, Variable *left, Variable *right, real a_=0, real b_=1, bool tabulated=true)
 PLEARN_DECLARE_OBJECT (SoftSlopeIntegralVariable)
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


Static Public Member Functions

void declareOptions (OptionList &ol)
 redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options) ( see the declareOption function further down)


Public Attributes

real a
real b
bool tabulated

Private Types

typedef NaryVariable inherited

Member Typedef Documentation

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

Reimplemented from PLearn::NaryVariable.

Definition at line 57 of file SoftSlopeIntegralVariable.h.

Referenced by SoftSlopeIntegralVariable().


Constructor & Destructor Documentation

PLearn::SoftSlopeIntegralVariable::SoftSlopeIntegralVariable  )  [inline]
 

Default constructor for persistence.

Definition at line 66 of file SoftSlopeIntegralVariable.h.

PLearn::SoftSlopeIntegralVariable::SoftSlopeIntegralVariable Variable smoothness,
Variable left,
Variable right,
real  a_ = 0,
real  b_ = 1,
bool  tabulated = true
 

Definition at line 57 of file SoftSlopeIntegralVariable.cc.

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


Member Function Documentation

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

Implements PLearn::Variable.

Definition at line 121 of file SoftSlopeIntegralVariable.cc.

References a, b, PLearn::left(), PLearn::VarArray::nelems(), PLearn::Variable::nelems(), PLearn::right(), PLearn::softplus(), tabulated, and PLearn::tabulated_softplus().

void PLearn::SoftSlopeIntegralVariable::declareOptions OptionList ol  )  [static]
 

redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options) ( see the declareOption function further down)

ex: static void declareOptions(OptionList& ol) { declareOption(ol, "inputsize", &MyObject::inputsize_, OptionBase::buildoption, "the size of the input\n it must be provided"); declareOption(ol, "weights", &MyObject::weights, OptionBase::learntoption, "the learnt model weights"); inherited::declareOptions(ol); }

Reimplemented from PLearn::NaryVariable.

Definition at line 65 of file SoftSlopeIntegralVariable.cc.

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

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

compute output given input

Implements PLearn::Variable.

Definition at line 94 of file SoftSlopeIntegralVariable.cc.

References a, b, PLearn::left(), PLearn::VarArray::nelems(), PLearn::Variable::nelems(), PLearn::right(), PLearn::soft_slope_integral(), tabulated, and PLearn::tabulated_soft_slope_integral().

PLearn::SoftSlopeIntegralVariable::PLEARN_DECLARE_OBJECT SoftSlopeIntegralVariable   ) 
 

void PLearn::SoftSlopeIntegralVariable::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 73 of file SoftSlopeIntegralVariable.cc.

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

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

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

Reimplemented from PLearn::Variable.

Definition at line 175 of file SoftSlopeIntegralVariable.cc.

References PLERROR.


Member Data Documentation

real PLearn::SoftSlopeIntegralVariable::a
 

Definition at line 61 of file SoftSlopeIntegralVariable.h.

Referenced by bprop(), and fprop().

real PLearn::SoftSlopeIntegralVariable::b
 

Definition at line 61 of file SoftSlopeIntegralVariable.h.

Referenced by bprop(), and fprop().

bool PLearn::SoftSlopeIntegralVariable::tabulated
 

Definition at line 62 of file SoftSlopeIntegralVariable.h.

Referenced by bprop(), and fprop().


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