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 &) | |
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... | |
Private Member Functions | |
TransformationModel (const TransformationModel &) | |
do not allow copy More... | |
const TransformationModel & | operator= (const TransformationModel &) |
do not allow assignment 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!) Both data and params must be provided, since some derived classes require both to create a model!
|
virtual |
Destructor.
|
private |
do not allow copy
Evaluates the model at the given value.
Reimplemented in TransformationModelInterpolated, TransformationModelLinear, TransformationModelBSpline, and TransformationModelLowess.
|
static |
Gets the default parameters.
const Param& getParameters | ( | ) | const |
Gets the (actual) parameters.
Referenced by TransformationModelLowess::evaluate().
|
private |
do not allow assignment
|
protected |
Parameters.
OpenMS / TOPP release 2.3.0 | Documentation generated on Tue Jan 9 2018 18:22:14 using doxygen 1.8.13 |