Stores the name and parameters of a model. More...
#include <OpenMS/TRANSFORMATIONS/FEATUREFINDER/ModelDescription.h>
Public Member Functions | |
| ModelDescription () | |
| Default constructor. | |
| ModelDescription (const ModelDescription &source) | |
| copy constructor | |
| ModelDescription (const BaseModel< D > *model) | |
| constructor provided for convenience | |
| virtual | ~ModelDescription () |
| destructor | |
| virtual ModelDescription & | operator= (const ModelDescription &source) |
| assignment operator | |
| BaseModel< D > * | createModel () |
| const String & | getName () const |
| Non-mutable access to model name. | |
| String & | getName () |
| Mutable access to the model name. | |
| void | setName (const String &name) |
| Set the model name. | |
| const Param & | getParam () const |
| Non-mutable access to model parameters. | |
| Param & | getParam () |
| Mutable access to the model parameters. | |
| void | setParam (const Param ¶m) |
| Set the model parameters. | |
Predicates | |
| virtual bool | operator== (const ModelDescription &rhs) const |
| virtual bool | operator!= (const ModelDescription &rhs) const |
Protected Attributes | |
| String | name_ |
| Param | parameters_ |
Stores the name and parameters of a model.
This class also allows reconstruction of the model.
| ModelDescription | ( | ) | [inline] |
Default constructor.
| ModelDescription | ( | const ModelDescription< D > & | source | ) | [inline] |
copy constructor
| ModelDescription | ( | const BaseModel< D > * | model | ) | [inline] |
constructor provided for convenience
| virtual ~ModelDescription | ( | ) | [inline, virtual] |
destructor
| BaseModel<D>* createModel | ( | ) | [inline] |
creates model from the parameters defined in this class returns 0 if no description is set.
Referenced by ModelFitter< PeakType, FeatureType >::fit(), ProductModel< 2 >::operator=(), and ProductModel< 2 >::ProductModel().
| String& getName | ( | ) | [inline] |
Mutable access to the model name.
| const String& getName | ( | ) | const [inline] |
Non-mutable access to model name.
Accessors
| const Param& getParam | ( | ) | const [inline] |
Non-mutable access to model parameters.
Referenced by FeatureFinderAlgorithmSimplest< PeakType, FeatureType >::run(), and FeatureFinderAlgorithmSimple< PeakType, FeatureType >::run().
| Param& getParam | ( | ) | [inline] |
Mutable access to the model parameters.
| virtual bool operator!= | ( | const ModelDescription< D > & | rhs | ) | const [inline, virtual] |
| virtual ModelDescription& operator= | ( | const ModelDescription< D > & | source | ) | [inline, virtual] |
assignment operator
| virtual bool operator== | ( | const ModelDescription< D > & | rhs | ) | const [inline, virtual] |
Referenced by ModelDescription< 2 >::operator!=().
| void setName | ( | const String & | name | ) | [inline] |
Set the model name.
| void setParam | ( | const Param & | param | ) | [inline] |
Set the model parameters.
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:57 using doxygen 1.7.1 |