LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::lncFeatureFile::header Class Reference

header of a lnc feature file More...

#include <ltiLncFeatureFile.h>

Inheritance diagram for lti::lncFeatureFile::header:
Inheritance graph
[legend]
Collaboration diagram for lti::lncFeatureFile::header:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 header ()
 header (const header &other)
headercopy (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

Detailed Description

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.


Constructor & Destructor Documentation

lti::lncFeatureFile::header::header (  ) 

default constructor

lti::lncFeatureFile::header::header ( const header other  ) 

copy constructor


Member Function Documentation

header& lti::lncFeatureFile::header::copy ( const header other  ) 

copy member

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


Member Data Documentation

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().


The documentation for this class was generated from the following file:

Generated on Sat Apr 10 15:28:03 2010 for LTI-Lib by Doxygen 1.6.1