#include <UniformVMatrix.h>
Inheritance diagram for PLearn::UniformVMatrix:
Public Member Functions | |
UniformVMatrix () | |
default constructor (for automatic deserialization) | |
UniformVMatrix (real the_minval, real the_maxval, int the_width) | |
PLEARN_DECLARE_OBJECT (UniformVMatrix) | |
virtual void | build () |
Should call simply inherited::build(), then this class's build_(). | |
virtual real | get (int i, int j) const |
returns element (i,j) | |
virtual void | getSubRow (int i, int j, Vec v) const |
fills v with the subrow i lying between columns j (inclusive) and j+v.length() (exclusive) | |
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) | |
Protected Attributes | |
real | minval |
real | maxval |
Private Types | |
typedef VMatrix | inherited |
Private Member Functions | |
void | build_ () |
This does the actual building. |
|
Reimplemented from PLearn::VMatrix. Definition at line 55 of file UniformVMatrix.h. Referenced by UniformVMatrix(). |
|
default constructor (for automatic deserialization)
Definition at line 52 of file UniformVMatrix.cc. |
|
Definition at line 57 of file UniformVMatrix.cc. References inherited. |
|
Should call simply inherited::build(), then this class's build_(). This method should be callable again at later times, after modifying some option fields to change the "architecture" of the object. Reimplemented from PLearn::VMatrix. Definition at line 62 of file UniformVMatrix.cc. References build_(). |
|
This does the actual building.
Reimplemented from PLearn::VMatrix. Definition at line 69 of file UniformVMatrix.cc. Referenced by build(). |
|
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::VMatrix. Definition at line 74 of file UniformVMatrix.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
returns element (i,j)
Reimplemented from PLearn::VMatrix. Definition at line 81 of file UniformVMatrix.cc. References maxval, minval, and PLearn::uniform_sample(). |
|
fills v with the subrow i lying between columns j (inclusive) and j+v.length() (exclusive)
Reimplemented from PLearn::VMatrix. Definition at line 87 of file UniformVMatrix.cc. References k, PLearn::TVec< T >::length(), maxval, minval, PLearn::uniform_sample(), and PLearn::Vec. |
|
|
|
Definition at line 59 of file UniformVMatrix.h. Referenced by get(), and getSubRow(). |
|
Definition at line 58 of file UniformVMatrix.h. Referenced by get(), and getSubRow(). |