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

Interpolation model for transformations. More...

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

Inheritance diagram for TransformationModelInterpolated:
TransformationModel

Classes

class  Interpolator
 The class defines a generic interpolation technique used in the TransformationModelInterpolated. More...
 

Public Member Functions

 TransformationModelInterpolated (const DataPoints &data, const Param &params)
 Constructor. More...
 
 ~TransformationModelInterpolated ()
 Destructor. More...
 
double evaluate (double 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...
 
const ParamgetParameters () 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...
 

Private Member Functions

void preprocessDataPoints_ (const DataPoints &data)
 Preprocesses the incoming data and fills the vectors x_ and y_. More...
 

Private Attributes

std::vector< doublex_
 Data coordinates. More...
 
std::vector< doubley_
 
Interpolatorinterp_
 Interpolation function. More...
 
TransformationModelLinearlm_
 Linear model for extrapolation. More...
 

Additional Inherited Members

- Public Types inherited from TransformationModel
typedef std::pair< double, doubleDataPoint
 Coordinate pair. More...
 
typedef std::vector< DataPointDataPoints
 Vector of coordinate pairs. More...
 
- Protected Attributes inherited from TransformationModel
Param params_
 Parameters. 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.

Constructor & Destructor Documentation

TransformationModelInterpolated ( const DataPoints data,
const Param params 
)

Constructor.

Parameters
dataThe known data points.
paramsParam object holding information on which model to choose.
Exceptions
IllegalArgumentis thrown if there are not enough data points or if an unknown interpolation type is given.

Destructor.

Member Function Documentation

double evaluate ( double  value) const
virtual

Evaluates the model at the given value.

Reimplemented from TransformationModel.

static void getDefaultParameters ( Param params)
static

Gets the default parameters.

void preprocessDataPoints_ ( const DataPoints data)
private

Preprocesses the incoming data and fills the vectors x_ and y_.

Member Data Documentation

Interpolator* interp_
private

Interpolation function.

Linear model for extrapolation.

std::vector<double> x_
private

Data coordinates.

std::vector<double> y_
private

OpenMS / TOPP release 2.0.0 Documentation generated on Fri May 29 2015 17:20:46 using doxygen 1.8.9.1