#include <DatedVMatrix.h>
Inheritance diagram for PLearn::DatedVMatrix:
Public Member Functions | |
DatedVMatrix () | |
DatedVMatrix (int width, int length) | |
virtual VMat | subDistrRelativeDates (int first, int n, const string &units)=0 |
virtual VMat | subDistrAbsoluteUnits (int year, int month, int day, int n_units, const string &units)=0 |
virtual int | lengthInDates (const string &units)=0 |
return "size" in the given units (e.g. interval in years, months, etc...) | |
virtual int | positionOfRelativeDate (int first, const string &units)=0 |
return row position of example whose relative date is the first with the given (relative) value, in the given time units | |
virtual int | nDateFields ()=0 |
return the number of real fields required to specify a date | |
virtual void | copyDatesOfRows (int from_row, int n_rows, Mat &dates)=0 |
copy the date fields for the relative positions starting at the given row position for the given number of rows, into the given matrix | |
virtual Vec | copyRowDataAndDate (int row, int &year, int &month, int &day)=0 |
virtual void | copyDateOfRow (int row, int &year, int &month, int &day)=0 |
PLEARN_DECLARE_ABSTRACT_OBJECT (DatedVMatrix) | |
virtual void | build () |
Should call simply inherited::build(), then this class's build_(). | |
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) | |
Private Types | |
typedef VMatrix | inherited |
Private Member Functions | |
void | build_ () |
This does the actual building. |
Definition at line 59 of file DatedVMatrix.h.
|
Reimplemented from PLearn::VMatrix. Reimplemented in PLearn::YMDDatedVMatrix. Definition at line 61 of file DatedVMatrix.h. |
|
Definition at line 67 of file DatedVMatrix.h. |
|
Definition at line 69 of file DatedVMatrix.h. |
|
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. Reimplemented in PLearn::YMDDatedVMatrix. Definition at line 56 of file DatedVMatrix.cc. References build_(). |
|
This does the actual building.
Reimplemented from PLearn::VMatrix. Reimplemented in PLearn::YMDDatedVMatrix. Definition at line 63 of file DatedVMatrix.cc. Referenced by build(). |
|
Implemented in PLearn::YMDDatedVMatrix. |
|
copy the date fields for the relative positions starting at the given row position for the given number of rows, into the given matrix
Implemented in PLearn::YMDDatedVMatrix. |
|
Implemented in PLearn::YMDDatedVMatrix. |
|
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. Reimplemented in PLearn::YMDDatedVMatrix. Definition at line 50 of file DatedVMatrix.cc. References PLearn::OptionList. |
|
return "size" in the given units (e.g. interval in years, months, etc...)
Implemented in PLearn::YMDDatedVMatrix. |
|
return the number of real fields required to specify a date
Implemented in PLearn::YMDDatedVMatrix. |
|
|
|
return row position of example whose relative date is the first with the given (relative) value, in the given time units
Implemented in PLearn::YMDDatedVMatrix. |
|
this one calls one of subDistrRelative{Years,Months,Days} according to wether units=="years", "months", or "days" (or if the first letter matches, irrespective of upper/lower case distinctions) Implemented in PLearn::YMDDatedVMatrix. |
|
this one calls one of subDistrRelative{Years,Months,Days} according to wether units=="years", "months", or "days" (or if the first letter matches, irrespective of upper/lower case distinctions) Implemented in PLearn::YMDDatedVMatrix. |