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

PLearn::NistDB Class Reference

#include <NistDB.h>

Inheritance diagram for PLearn::NistDB:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NistDB (bool train)
 Views the train data if train is true, test data otherwise.

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

ifstream imagef
ifstream labelf
unsigned char buf [28 *28]

Constructor & Destructor Documentation

PLearn::NistDB::NistDB bool  train  ) 
 

Views the train data if train is true, test data otherwise.

Definition at line 52 of file NistDB.cc.

References imagef, labelf, and PLERROR.


Member Function Documentation

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

returns element (i,j)

Reimplemented from PLearn::VMatrix.

Definition at line 76 of file NistDB.cc.

References imagef, labelf, PLearn::VMatrix::length(), PLERROR, and PLearn::VMatrix::width().

void PLearn::NistDB::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 98 of file NistDB.cc.

References buf, imagef, k, labelf, PLearn::TVec< T >::length(), PLearn::VMatrix::length(), PLERROR, PLearn::Vec, and PLearn::VMatrix::width().


Member Data Documentation

unsigned char PLearn::NistDB::buf[28 *28] [mutable, protected]
 

Definition at line 61 of file NistDB.h.

Referenced by getSubRow().

ifstream PLearn::NistDB::imagef [mutable, protected]
 

Definition at line 59 of file NistDB.h.

Referenced by get(), getSubRow(), and NistDB().

ifstream PLearn::NistDB::labelf [mutable, protected]
 

Definition at line 60 of file NistDB.h.

Referenced by get(), getSubRow(), and NistDB().


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