#include <ByteMemoryVMatrix.h>
Inheritance diagram for PLearn::ByteMemoryVMatrix:
Public Member Functions | |
ByteMemoryVMatrix () | |
ByteMemoryVMatrix *. | |
ByteMemoryVMatrix (unsigned char *data, int the_length, int the_width, double scaling_factor=1.0, double offset_=0.0) | |
ByteMemoryVMatrix (unsigned char *data, int the_length, int the_width, Vec scale) | |
ByteMemoryVMatrix (unsigned char *data, int the_length, int the_width, Vec scale, Vec offset_) | |
PLEARN_DECLARE_OBJECT (ByteMemoryVMatrix) | |
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) | |
Protected Attributes | |
unsigned char * | data |
Vec | scale |
sample = (data[i]+offset_[i])*scale[i]; | |
Vec | offset_ |
Private Types | |
typedef VMatrix | inherited |
|
Reimplemented from PLearn::VMatrix. Definition at line 55 of file ByteMemoryVMatrix.h. Referenced by ByteMemoryVMatrix(). |
|
Definition at line 50 of file ByteMemoryVMatrix.cc. |
|
Definition at line 74 of file ByteMemoryVMatrix.cc. |
|
Definition at line 55 of file ByteMemoryVMatrix.cc. References inherited, PLearn::TVec< T >::length(), PLERROR, and PLearn::Vec. |
|
Definition at line 64 of file ByteMemoryVMatrix.cc. References PLearn::TVec< T >::length(), and PLERROR. |
|
returns element (i,j)
Reimplemented from PLearn::VMatrix. Definition at line 81 of file ByteMemoryVMatrix.cc. References data, offset_, scale, and PLearn::VMatrix::width(). |
|
fills v with the subrow i lying between columns j (inclusive) and j+v.length() (exclusive)
Reimplemented from PLearn::VMatrix. Definition at line 86 of file ByteMemoryVMatrix.cc. References PLearn::TVec< T >::data(), data, PLearn::TVec< T >::length(), offset_, and scale. |
|
|
|
Definition at line 58 of file ByteMemoryVMatrix.h. Referenced by get(), and getSubRow(). |
|
Definition at line 60 of file ByteMemoryVMatrix.h. Referenced by get(), and getSubRow(). |
|
sample = (data[i]+offset_[i])*scale[i];
Definition at line 59 of file ByteMemoryVMatrix.h. Referenced by get(), and getSubRow(). |