ARFF data format filter. More...
#include <data_file_ARFF.hpp>
Public Member Functions | |
Data_File_ARFF (string fileName) | |
bool | prepareFile () |
void | sortRecordsByClass () |
unsigned int | getNoOfClasses () |
unsigned int | getNoOfFeatures () |
unsigned int | getNoOfAttributes () |
unsigned int | getTotalSize () |
unsigned int | getClassSize (int clsId) |
string | getClassName (int clsId) |
Data_File_ARFF_Record * | getRecordAt (long i) |
float | getFeatureValue (long record, int feature) |
void | printInfo () |
Private Member Functions | |
Data_File_ARFF_Feature * | createAttribute (char *info) |
bool | readNextRow (char *row) |
void | prepareAttributes () |
Data_File_ARFF_Record * | readNormalRow (char *row) |
Data_File_ARFF_Record * | readSparseRow (char *row) |
bool | readAttrValue (Data_File_ARFF_Feature *feature, Data_File_ARFF_Record *rec, char *value) |
char * | trim (char *szSource) |
trims a string (removes spaces, tabs, and cr / lf | |
char * | mystrupr (char *szSource) |
replaces nonstandard strupr | |
Private Attributes | |
string | _fileName |
vector< Data_File_ARFF_Record * > | data |
vector< Data_File_ARFF_Feature * > | attributes |
vector< Data_File_ARFF_Feature * > | features |
int * | classSize |
string | relationName |
int | attributesCount |
int | classAttribute |
int | classCount |
int | recordSize |
bool | loaded |
ARFF data format filter.
Data_File_ARFF_Feature * FST::Data_File_ARFF::createAttribute | ( | char * | info | ) | [private] |
Nominal type
References mystrupr(), and trim().