LTI-Lib latest version v1.9 - last update 24 Nov 2005
Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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

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

int lti::lncFeatureFile::header::numberOfInputUnits
 

dimension of the feature vector

int lti::lncFeatureFile::header::numberOfObjects
 

total number of object/classes in the file

int lti::lncFeatureFile::header::numberOfOutputUnits
 

number of classes, to which each pattern belongs (usually 1)

int lti::lncFeatureFile::header::numberOfPatterns
 

number of patters (or feature vectors) in this file


The documentation for this class was generated from the following file:
Generated on Thu Nov 24 16:53:11 2005 for LTI-Lib by Doxygen 1.4.4