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

PLearn::ArgminVariable Class Reference

#include <ArgminVariable.h>

Inheritance diagram for PLearn::ArgminVariable:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ArgminVariable ()
 Default constructor for persistence.

 ArgminVariable (Variable *input)
 PLEARN_DECLARE_OBJECT (ArgminVariable)
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 variable computes the index of the minimum value in the input It is a scalar variable if the input is a vector (single row or single column) Otherwise it is a single-column of length() 2 containing the (i,j) coordinate of the min

Definition at line 56 of file ArgminVariable.h.


Member Typedef Documentation

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

Reimplemented from PLearn::UnaryVariable.

Definition at line 58 of file ArgminVariable.h.

Referenced by ArgminVariable().


Constructor & Destructor Documentation

PLearn::ArgminVariable::ArgminVariable  )  [inline]
 

Default constructor for persistence.

Definition at line 62 of file ArgminVariable.h.

PLearn::ArgminVariable::ArgminVariable Variable input  ) 
 

Definition at line 55 of file ArgminVariable.cc.

References inherited.


Member Function Documentation

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

Implements PLearn::Variable.

Definition at line 105 of file ArgminVariable.cc.

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

compute output given input

Implements PLearn::Variable.

Definition at line 66 of file ArgminVariable.cc.

References PLearn::argmin(), k, PLearn::Var::length(), val, and PLearn::Var::width().

PLearn::ArgminVariable::PLEARN_DECLARE_OBJECT ArgminVariable   ) 
 

void PLearn::ArgminVariable::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 59 of file ArgminVariable.cc.

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

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

Reimplemented from PLearn::Variable.

Definition at line 107 of file ArgminVariable.cc.


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