#include <NistDB.h>
Inheritance diagram for PLearn::NistDB:


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] |
|
|
Views the train data if train is true, test data otherwise.
|
|
||||||||||||
|
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(). |
|
||||||||||||||||
|
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(). |
|
|
Definition at line 61 of file NistDB.h. Referenced by getSubRow(). |
|
|
Definition at line 59 of file NistDB.h. Referenced by get(), getSubRow(), and NistDB(). |
|
|
Definition at line 60 of file NistDB.h. Referenced by get(), getSubRow(), and NistDB(). |
1.3.7