Interpolation model for transformations. More...
#include <OpenMS/ANALYSIS/MAPMATCHING/TransformationModel.h>
Public Member Functions | |
TransformationModelInterpolated (const DataPoints &data, const Param ¶ms) | |
Constructor. More... | |
~TransformationModelInterpolated () | |
Destructor. More... | |
DoubleReal | evaluate (const DoubleReal value) const |
Evaluates the model at the given value. More... | |
![]() | |
TransformationModel () | |
Constructor. More... | |
TransformationModel (const TransformationModel::DataPoints &, const Param &) | |
Alternative constructor (derived classes should implement this one!) More... | |
virtual | ~TransformationModel () |
Destructor. More... | |
void | getParameters (Param ¶ms) const |
Gets the (actual) parameters. More... | |
Static Public Member Functions | |
static void | getDefaultParameters (Param ¶ms) |
Gets the default parameters. More... | |
![]() | |
static void | getDefaultParameters (Param ¶ms) |
Gets the default parameters. More... | |
Protected Attributes | |
std::vector< double > | x_ |
Data coordinates. More... | |
std::vector< double > | y_ |
size_t | size_ |
Number of data points. More... | |
gsl_interp_accel * | acc_ |
Look-up accelerator. More... | |
gsl_interp * | interp_ |
Interpolation function. More... | |
TransformationModelLinear * | lm_ |
Linear model for extrapolation. More... | |
![]() | |
Param | params_ |
Parameters. More... | |
Additional Inherited Members | |
![]() | |
typedef std::pair< DoubleReal, DoubleReal > | DataPoint |
Coordinate pair. More... | |
typedef std::vector< DataPoint > | DataPoints |
Vector of coordinate pairs. More... | |
Interpolation model for transformations.
Between the data points, the interpolation uses the neighboring points. Outside the range spanned by the points, we extrapolate using a line through the first and the last point.
Different types of interpolation (controlled by the parameter interpolation_type
) are supported: "linear", "polynomial", "cspline", and "akima". Note that the number of required data points may differ between types.
TransformationModelInterpolated | ( | const DataPoints & | data, |
const Param & | params | ||
) |
Constructor.
IllegalArgument | is thrown if there are not enough data points or if an unknown interpolation type is given. |
Destructor.
|
virtual |
Evaluates the model at the given value.
Reimplemented from TransformationModel.
|
static |
Gets the default parameters.
|
protected |
Look-up accelerator.
|
protected |
Interpolation function.
|
protected |
Linear model for extrapolation.
|
protected |
Number of data points.
|
protected |
Data coordinates.
|
protected |
OpenMS / TOPP release 1.11.1 | Documentation generated on Thu Nov 14 2013 11:19:26 using doxygen 1.8.5 |