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

PLearn::ThresholdVMatrix Class Reference

#include <ThresholdVMatrix.h>

Inheritance diagram for PLearn::ThresholdVMatrix:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ThresholdVMatrix ()
 ThresholdVMatrix *.

 ThresholdVMatrix (VMat the_underlying_distr, real threshold_, real the_cold_value=0.0, real the_hot_value=1.0, bool gt_threshold_=true)
virtual void getNewRow (int i, const Vec &v) const
 This is the only method requiring implementation in subclasses.

virtual void reset_dimensions ()
 in case the dimensions of an underlying vmat has changed, recompute it


Protected Attributes

VMat underlying_distr
real threshold
real cold_value
real hot_value
bool gt_threshold

Private Types

typedef RowBufferedVMatrix inherited

Member Typedef Documentation

typedef RowBufferedVMatrix PLearn::ThresholdVMatrix::inherited [private]
 

Reimplemented from PLearn::RowBufferedVMatrix.

Definition at line 56 of file ThresholdVMatrix.h.

Referenced by ThresholdVMatrix().


Constructor & Destructor Documentation

PLearn::ThresholdVMatrix::ThresholdVMatrix  ) 
 

ThresholdVMatrix *.

Definition at line 45 of file ThresholdVMatrix.cc.

PLearn::ThresholdVMatrix::ThresholdVMatrix VMat  the_underlying_distr,
real  threshold_,
real  the_cold_value = 0.0,
real  the_hot_value = 1.0,
bool  gt_threshold_ = true
 

Definition at line 50 of file ThresholdVMatrix.cc.

References inherited.


Member Function Documentation

void PLearn::ThresholdVMatrix::getNewRow int  i,
const Vec v
const [virtual]
 

This is the only method requiring implementation in subclasses.

Implements PLearn::RowBufferedVMatrix.

Definition at line 57 of file ThresholdVMatrix.cc.

References cold_value, gt_threshold, hot_value, PLearn::TVec< T >::length(), PLearn::VMatrix::length(), PLERROR, PLearn::TVec< T >::size(), threshold, underlying_distr, PLearn::Vec, and PLearn::VMatrix::width().

virtual void PLearn::ThresholdVMatrix::reset_dimensions  )  [inline, virtual]
 

in case the dimensions of an underlying vmat has changed, recompute it

Reimplemented from PLearn::VMatrix.

Definition at line 74 of file ThresholdVMatrix.h.

References PLearn::VMat::length(), underlying_distr, and PLearn::VMat::width().


Member Data Documentation

real PLearn::ThresholdVMatrix::cold_value [protected]
 

Definition at line 61 of file ThresholdVMatrix.h.

Referenced by getNewRow().

bool PLearn::ThresholdVMatrix::gt_threshold [protected]
 

Definition at line 63 of file ThresholdVMatrix.h.

Referenced by getNewRow().

real PLearn::ThresholdVMatrix::hot_value [protected]
 

Definition at line 62 of file ThresholdVMatrix.h.

Referenced by getNewRow().

real PLearn::ThresholdVMatrix::threshold [protected]
 

Definition at line 60 of file ThresholdVMatrix.h.

Referenced by getNewRow().

VMat PLearn::ThresholdVMatrix::underlying_distr [protected]
 

Definition at line 59 of file ThresholdVMatrix.h.

Referenced by getNewRow(), and reset_dimensions().


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