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

PLearn::IntStreamVMatrix Class Reference

#include <IntStream.h>

Inheritance diagram for PLearn::IntStreamVMatrix:

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

Collaboration graph
[legend]
List of all members.

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< IntStreamstream
int position
int dummy_input
int end_of_sequence_symbol

Constructor & Destructor Documentation

PLearn::IntStreamVMatrix::IntStreamVMatrix  )  [inline]
 

Definition at line 116 of file IntStream.h.

PLearn::IntStreamVMatrix::IntStreamVMatrix IntStream s,
int  window_size,
int  dummy_input,
int  eos
 

Definition at line 55 of file IntStream.cc.

References dummy_input, and PLearn::TVec< T >::fill().


Member Function Documentation

void PLearn::IntStreamVMatrix::getRow int  i,
Vec  v
const [virtual]
 

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().


Member Data Documentation

int PLearn::IntStreamVMatrix::dummy_input [protected]
 

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().

int PLearn::IntStreamVMatrix::end_of_sequence_symbol [protected]
 

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().

int PLearn::IntStreamVMatrix::position [mutable, protected]
 

Definition at line 103 of file IntStream.h.

Referenced by getRow().

PP<IntStream> PLearn::IntStreamVMatrix::stream [protected]
 

Definition at line 102 of file IntStream.h.

Referenced by getRow().


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