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

PLearn::ByteMemoryVMatrix Class Reference

#include <ByteMemoryVMatrix.h>

Inheritance diagram for PLearn::ByteMemoryVMatrix:

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

Collaboration graph
[legend]
List of all members.

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

Member Typedef Documentation

typedef VMatrix PLearn::ByteMemoryVMatrix::inherited [private]
 

Reimplemented from PLearn::VMatrix.

Definition at line 55 of file ByteMemoryVMatrix.h.

Referenced by ByteMemoryVMatrix().


Constructor & Destructor Documentation

PLearn::ByteMemoryVMatrix::ByteMemoryVMatrix  ) 
 

ByteMemoryVMatrix *.

Definition at line 50 of file ByteMemoryVMatrix.cc.

PLearn::ByteMemoryVMatrix::ByteMemoryVMatrix unsigned char *  data,
int  the_length,
int  the_width,
double  scaling_factor = 1.0,
double  offset_ = 0.0
 

Definition at line 74 of file ByteMemoryVMatrix.cc.

PLearn::ByteMemoryVMatrix::ByteMemoryVMatrix unsigned char *  data,
int  the_length,
int  the_width,
Vec  scale
 

Definition at line 55 of file ByteMemoryVMatrix.cc.

References inherited, PLearn::TVec< T >::length(), PLERROR, and PLearn::Vec.

PLearn::ByteMemoryVMatrix::ByteMemoryVMatrix unsigned char *  data,
int  the_length,
int  the_width,
Vec  scale,
Vec  offset_
 

Definition at line 64 of file ByteMemoryVMatrix.cc.

References PLearn::TVec< T >::length(), and PLERROR.


Member Function Documentation

real PLearn::ByteMemoryVMatrix::get int  i,
int  j
const [virtual]
 

returns element (i,j)

Reimplemented from PLearn::VMatrix.

Definition at line 81 of file ByteMemoryVMatrix.cc.

References data, offset_, scale, and PLearn::VMatrix::width().

void PLearn::ByteMemoryVMatrix::getSubRow int  i,
int  j,
Vec  v
const [virtual]
 

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.

PLearn::ByteMemoryVMatrix::PLEARN_DECLARE_OBJECT ByteMemoryVMatrix   ) 
 


Member Data Documentation

unsigned char* PLearn::ByteMemoryVMatrix::data [protected]
 

Definition at line 58 of file ByteMemoryVMatrix.h.

Referenced by get(), and getSubRow().

Vec PLearn::ByteMemoryVMatrix::offset_ [protected]
 

Definition at line 60 of file ByteMemoryVMatrix.h.

Referenced by get(), and getSubRow().

Vec PLearn::ByteMemoryVMatrix::scale [protected]
 

sample = (data[i]+offset_[i])*scale[i];

Definition at line 59 of file ByteMemoryVMatrix.h.

Referenced by get(), and getSubRow().


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