STK++ 0.9.13
|
A DataHandler class allow to store various data set identified with an idData (a string). More...
#include <STK_IDataHandler.h>
Public Types | |
typedef std::map< std::string, std::string > | InfoMap |
Public Member Functions | |
IDataHandler () | |
default constructor | |
virtual | ~IDataHandler () |
destructor | |
InfoMap const & | info () const |
bool | addInfo (std::string const &idData, std::string const &idModel) |
Add an info descriptor to the data handler. | |
bool | getIdModelName (std::string const &idData, std::string &idModel) const |
Giving a the Id of a dataset, find the Id of the model. | |
virtual int | nbSample () const =0 |
void | writeInfo (ostream &os) const |
write the info on os | |
Protected Attributes | |
InfoMap | info_ |
Store the informations of the mixtures in the form (idData, idModel) with. | |
A DataHandler class allow to store various data set identified with an idData (a string).
To each data set there is an attached (statistical) model that can be adjusted to this data set. This statistical model is identified by an idModel (a string).
Definition at line 65 of file STK_IDataHandler.h.
typedef std::map<std::string, std::string> STK::IDataHandler::InfoMap |
Definition at line 68 of file STK_IDataHandler.h.
|
inline |
|
inlinevirtual |
Add an info descriptor to the data handler.
An info descriptor is a pair that allow to say that the data set handled having the name (ID) "idData" is modeled by the model with name (ID) "idModel".
idData | can be any string given by the user for identifying data. |
idModel | represents the idModel of a given model (can be defined inside or outside STK++). |
false
if there exists already an idData matched with an other idModel, true
otherwise. Definition at line 116 of file STK_IDataHandler.h.
|
inline |
Giving a the Id of a dataset, find the Id of the model.
idData | can be any string given by the user for identifying data. |
idModel | The Id of the model associated with the data (not modified if idData is not present in the map). |
true
if there exists an idData in the InfoMap, false
otherwise. Definition at line 143 of file STK_IDataHandler.h.
References info_.
Definition at line 74 of file STK_IDataHandler.h.
References info_.
|
protected |
Store the informations of the mixtures in the form (idData, idModel) with.
Definition at line 106 of file STK_IDataHandler.h.
Referenced by addInfo(), getIdModelName(), info(), and writeInfo().