Interpolation model for transformations. More...
#include <OpenMS/ANALYSIS/MAPMATCHING/TransformationModel.h>
Public Member Functions | |
| TransformationModelInterpolated (const DataPoints &data, const Param ¶ms) | |
| Constructor. | |
| ~TransformationModelInterpolated () | |
| Destructor. | |
| DoubleReal | evaluate (const DoubleReal value) const |
| Evaluates the model at the given value. | |
Static Public Member Functions | |
| static void | getDefaultParameters (Param ¶ms) |
| Gets the default parameters. | |
Protected Attributes | |
| std::vector< double > | x_ |
| Data coordinates. | |
| std::vector< double > | y_ |
| size_t | size_ |
| Number of data points. | |
| gsl_interp_accel * | acc_ |
| Look-up accelerator. | |
| gsl_interp * | interp_ |
| Interpolation function. | |
| TransformationModelLinear * | lm_ |
| Linear model for extrapolation. | |
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.
| DoubleReal evaluate | ( | const DoubleReal | value | ) | const [virtual] |
Evaluates the model at the given value.
Reimplemented from TransformationModel.
| static void getDefaultParameters | ( | Param & | params | ) | [static] |
Gets the default parameters.
Reimplemented from TransformationModel.
gsl_interp_accel* acc_ [protected] |
Look-up accelerator.
gsl_interp* interp_ [protected] |
Interpolation function.
TransformationModelLinear* lm_ [protected] |
Linear model for extrapolation.
size_t size_ [protected] |
Number of data points.
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:49 using doxygen 1.7.1 |