#include <ThresholdVMatrix.h>
Inheritance diagram for PLearn::ThresholdVMatrix:
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 |
|
Reimplemented from PLearn::RowBufferedVMatrix. Definition at line 56 of file ThresholdVMatrix.h. Referenced by ThresholdVMatrix(). |
|
Definition at line 45 of file ThresholdVMatrix.cc. |
|
Definition at line 50 of file ThresholdVMatrix.cc. References inherited. |
|
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(). |
|
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(). |
|
Definition at line 61 of file ThresholdVMatrix.h. Referenced by getNewRow(). |
|
Definition at line 63 of file ThresholdVMatrix.h. Referenced by getNewRow(). |
|
Definition at line 62 of file ThresholdVMatrix.h. Referenced by getNewRow(). |
|
Definition at line 60 of file ThresholdVMatrix.h. Referenced by getNewRow(). |
|
Definition at line 59 of file ThresholdVMatrix.h. Referenced by getNewRow(), and reset_dimensions(). |