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

PLearn::ConvolveVariable Class Reference

A convolve var; equals convolve(input, mask). More...

#include <ConvolveVariable.h>

Inheritance diagram for PLearn::ConvolveVariable:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ConvolveVariable ()
 Default constructor for persistence.

 ConvolveVariable (Variable *input, Variable *mask)
 PLEARN_DECLARE_OBJECT (ConvolveVariable)
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 BinaryVariable inherited

Detailed Description

A convolve var; equals convolve(input, mask).

Definition at line 54 of file ConvolveVariable.h.


Member Typedef Documentation

typedef BinaryVariable PLearn::ConvolveVariable::inherited [private]
 

Reimplemented from PLearn::BinaryVariable.

Definition at line 56 of file ConvolveVariable.h.

Referenced by ConvolveVariable().


Constructor & Destructor Documentation

PLearn::ConvolveVariable::ConvolveVariable  )  [inline]
 

Default constructor for persistence.

Definition at line 60 of file ConvolveVariable.h.

PLearn::ConvolveVariable::ConvolveVariable Variable input,
Variable mask
 

Definition at line 55 of file ConvolveVariable.cc.

References inherited.


Member Function Documentation

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

Implements PLearn::Variable.

Definition at line 76 of file ConvolveVariable.cc.

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

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

compute output given input

Implements PLearn::Variable.

Definition at line 70 of file ConvolveVariable.cc.

References PLearn::convolve().

PLearn::ConvolveVariable::PLEARN_DECLARE_OBJECT ConvolveVariable   ) 
 

void PLearn::ConvolveVariable::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 60 of file ConvolveVariable.cc.

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

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

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

Reimplemented from PLearn::Variable.

Definition at line 100 of file ConvolveVariable.cc.

References PLERROR.


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