latest version v1.9 - last update 10 Apr 2010 |
class to save lnc-files (ascii format to store feature vectors) More...
#include <ltiLncFeatureFile.h>
Classes | |
class | parameters |
lncFeatureFile parameters class More... | |
Public Member Functions | |
saveLnc () | |
saveLnc (const parameters &par) | |
const parameters & | getParameters () const |
virtual functor * | clone () const |
bool | apply (const dvector &vct, const patternId &id) |
void | reset () |
bool | writeCncFile (const std::string &filename) |
void | setNameToIdMap (const std::map< std::string, int > &newMap) |
class to save lnc-files (ascii format to store feature vectors)
lti::saveLnc::saveLnc | ( | ) |
Default constructor.
Referenced by clone().
lti::saveLnc::saveLnc | ( | const parameters & | par | ) |
Constructor with parameters.
save the vector at the end of the file.
virtual functor* lti::saveLnc::clone | ( | ) | const [inline, virtual] |
const parameters& lti::saveLnc::getParameters | ( | ) | const |
get the used parameters
Reimplemented from lti::lncFeatureFile.
void lti::saveLnc::reset | ( | ) |
restart writing the file
void lti::saveLnc::setNameToIdMap | ( | const std::map< std::string, int > & | newMap | ) |
set the current name to object id table
bool lti::saveLnc::writeCncFile | ( | const std::string & | filename | ) |
write the whole name-id map to the given cnc file (the contents of the file will be destroyed if the file already exists)
Reimplemented from lti::lncFeatureFile.