Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
TransformationModelInterpolated Class Reference

Interpolation model for transformations. More...

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

Inheritance diagram for TransformationModelInterpolated:
TransformationModel

Public Member Functions

 TransformationModelInterpolated (const DataPoints &data, const Param &params)
 Constructor. More...
 
 ~TransformationModelInterpolated ()
 Destructor. More...
 
DoubleReal evaluate (const DoubleReal value) const
 Evaluates the model at the given value. More...
 
- Public Member Functions inherited from TransformationModel
 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 &params) const
 Gets the (actual) parameters. More...
 

Static Public Member Functions

static void getDefaultParameters (Param &params)
 Gets the default parameters. More...
 
- Static Public Member Functions inherited from TransformationModel
static void getDefaultParameters (Param &params)
 Gets the default parameters. More...
 

Protected Attributes

std::vector< doublex_
 Data coordinates. More...
 
std::vector< doubley_
 
size_t size_
 Number of data points. More...
 
gsl_interp_accel * acc_
 Look-up accelerator. More...
 
gsl_interp * interp_
 Interpolation function. More...
 
TransformationModelLinearlm_
 Linear model for extrapolation. More...
 
- Protected Attributes inherited from TransformationModel
Param params_
 Parameters. More...
 

Additional Inherited Members

- Public Types inherited from TransformationModel
typedef std::pair< DoubleReal,
DoubleReal
DataPoint
 Coordinate pair. More...
 
typedef std::vector< DataPointDataPoints
 Vector of coordinate pairs. More...
 

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
IllegalArgumentis 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.

Member Data Documentation

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.

std::vector<double> x_
protected

Data coordinates.

std::vector<double> y_
protected

OpenMS / TOPP release 1.11.1 Documentation generated on Thu Nov 14 2013 11:19:26 using doxygen 1.8.5