|
latest version v1.9 - last update 10 Apr 2010 |
|
header of a lnc feature file More...
#include <ltiLncFeatureFile.h>


Public Member Functions | |
| header () | |
| header (const header &other) | |
| header & | copy (const header &other) |
| bool | save (std::ostream &dest) |
| bool | load (std::istream &source) |
Public Attributes | |
| int | numberOfObjects |
| int | numberOfPatterns |
| int | numberOfInputUnits |
| int | numberOfOutputUnits |
| std::map< std::string, int > | items |
| std::string | featureType |
header of a lnc feature file
The header of the feature file must begin with something like
SNNS pattern definition file V3.2 generated at Thu Apr 6 17:12:10 2000
The following lines will be ignore except for those which follow following squeme:
[itemName]:[itemValue]
where [itemName] is a string with no colon (':') and value is a valid integer number.
The last line of the header MUST be
# FeatureType : xyz
where xyz represents any string
There are five item-pairs, which will be directly parsed and stored in * the correspondent header attributes:
This five pair will NOT be included in the items map when reading the file, and should NOT be present in the items map when storing the file.
| lti::lncFeatureFile::header::header | ( | ) |
default constructor
| lti::lncFeatureFile::header::header | ( | const header & | other | ) |
copy constructor
| bool lti::lncFeatureFile::header::load | ( | std::istream & | source | ) |
load this header from the given stream
| bool lti::lncFeatureFile::header::save | ( | std::ostream & | dest | ) |
save this header on the given stream
| std::string lti::lncFeatureFile::header::featureType |
name of the feature type
| std::map<std::string,int> lti::lncFeatureFile::header::items |
other items-pairs will be stored here
dimension of the feature vector
total number of object/classes in the file
number of classes, to which each pattern belongs (usually 1)
number of patters (or feature vectors) in this file
Referenced by lti::lncFeatureFile::getNumberOfPatterns().