Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions | Static Public Member Functions | Protected Attributes

TransformationModelInterpolated Class Reference
[MapAlignment]

Interpolation model for transformations. More...

#include <OpenMS/ANALYSIS/MAPMATCHING/TransformationModel.h>

Inheritance diagram for TransformationModelInterpolated:
TransformationModel

List of all members.

Public Member Functions

 TransformationModelInterpolated (const DataPoints &data, const Param &params)
 Constructor.
 ~TransformationModelInterpolated ()
 Destructor.
DoubleReal evaluate (const DoubleReal value) const
 Evaluates the model at the given value.

Static Public Member Functions

static void getDefaultParameters (Param &params)
 Gets the default parameters.

Protected Attributes

std::vector< doublex_
 Data coordinates.
std::vector< doubley_
size_t size_
 Number of data points.
gsl_interp_accel * acc_
 Look-up accelerator.
gsl_interp * interp_
 Interpolation function.
TransformationModelLinearlm_
 Linear model for extrapolation.

Detailed Description

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.


Constructor & Destructor Documentation

TransformationModelInterpolated ( const DataPoints data,
const Param params 
)

Constructor.

Exceptions:
IllegalArgument is thrown if there are not enough data points or if an unknown interpolation type is given.

Destructor.


Member Function Documentation

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.


Member Data Documentation

gsl_interp_accel* acc_ [protected]

Look-up accelerator.

gsl_interp* interp_ [protected]

Interpolation function.

Linear model for extrapolation.

size_t size_ [protected]

Number of data points.

std::vector<double> x_ [protected]

Data coordinates.

std::vector<double> y_ [protected]

OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:49 using doxygen 1.7.1