Base class for transformation models. More...
#include <OpenMS/ANALYSIS/MAPMATCHING/TransformationModel.h>
Public Types | |
typedef std::pair< double, double > | DataPoint |
Coordinate pair. More... | |
typedef std::vector< DataPoint > | DataPoints |
Vector of coordinate pairs. More... | |
Public Member Functions | |
TransformationModel () | |
Constructor. More... | |
TransformationModel (const TransformationModel::DataPoints &, const Param &) | |
Alternative constructor (derived classes should implement this one!) More... | |
virtual | ~TransformationModel () |
Destructor. More... | |
virtual double | evaluate (double value) const |
Evaluates the model at the given value. More... | |
const Param & | getParameters () const |
Gets the (actual) parameters. More... | |
Static Public Member Functions | |
static void | getDefaultParameters (Param ¶ms) |
Gets the default parameters. More... | |
Protected Attributes | |
Param | params_ |
Parameters. More... | |
Base class for transformation models.
Implements the identity (no transformation). Parameters and data are ignored.
Note that this class and its derived classes do not allow copying/assignment, due to the need for internal memory management associated with some of the transformation models.
typedef std::vector<DataPoint> DataPoints |
Vector of coordinate pairs.
|
inline |
Constructor.
TransformationModel | ( | const TransformationModel::DataPoints & | , |
const Param & | |||
) |
Alternative constructor (derived classes should implement this one!)
|
virtual |
Destructor.
Evaluates the model at the given value.
Reimplemented in TransformationModelInterpolated, TransformationModelLinear, and TransformationModelBSpline.
|
static |
Gets the default parameters.
const Param& getParameters | ( | ) | const |
Gets the (actual) parameters.
|
protected |
Parameters.
OpenMS / TOPP release 2.0.0 | Documentation generated on Tue Nov 1 2016 16:34:46 using doxygen 1.8.11 |