#include <IntStream.h>
Inheritance diagram for PLearn::IntStreamVMatrix:
Public Member Functions | |
IntStreamVMatrix () | |
IntStreamVMatrix (IntStream &s, int window_size, int dummy_input, int eos) | |
virtual void | getRow (int i, Vec v) const |
copies row i into v (which must have appropriate length equal to the VMat's width) | |
Protected Attributes | |
PP< IntStream > | stream |
int | position |
int | dummy_input |
int | end_of_sequence_symbol |
|
Definition at line 116 of file IntStream.h. |
|
Definition at line 55 of file IntStream.cc. References dummy_input, and PLearn::TVec< T >::fill(). |
|
copies row i into v (which must have appropriate length equal to the VMat's width)
Reimplemented from PLearn::RowBufferedVMatrix. Definition at line 62 of file IntStream.cc. References dummy_input, end_of_sequence_symbol, PLERROR, position, stream, and PLearn::VMatrix::width(). |
|
current_row is a window on the stream, with current_row[width()-1] being the element at position 'position' of the stream. Note also that the first width()-1 elements of current row when at position 0 or "end of sequence" are filled with a special value, dummy_input: Definition at line 109 of file IntStream.h. Referenced by getRow(), and IntStreamVMatrix(). |
|
When the end_of_sequence_symbol is encountered, the symbols that follow are "isolated" from the symbols that precede, i.e. when this symbol moves from element width()-1 to width()-1, the elements that precede are replaced by 'dummy_input'. Definition at line 114 of file IntStream.h. Referenced by getRow(). |
|
Definition at line 103 of file IntStream.h. Referenced by getRow(). |
|
Definition at line 102 of file IntStream.h. Referenced by getRow(). |