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

B-spline (non-linear) model for transformations. More...

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

Inheritance diagram for TransformationModelBSpline:
TransformationModel

Public Member Functions

 TransformationModelBSpline (const DataPoints &data, const Param &params)
 Constructor. More...
 
 ~TransformationModelBSpline ()
 Destructor. More...
 
virtual 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 &)
 
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...
 

Protected Types

enum  { EX_LINEAR, EX_BSPLINE, EX_CONSTANT, EX_GLOBAL_LINEAR }
 Method to use for extrapolation (beyond 'xmin_'/'xmax_') More...
 

Protected Attributes

BSpline2dspline_
 Pointer to the actual B-spline. More...
 
double xmin_
 Min./max. x value (endpoints of the data range) More...
 
double xmax_
 
enum OpenMS::TransformationModelBSpline:: { ... }  extrapolate_
 Method to use for extrapolation (beyond 'xmin_'/'xmax_') More...
 
double offset_min_
 Parameters for constant or linear extrapolation. More...
 
double offset_max_
 
double slope_min_
 
double slope_max_
 
- Protected Attributes inherited from TransformationModel
Param params_
 Parameters. 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...
 

Detailed Description

B-spline (non-linear) model for transformations.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected

Method to use for extrapolation (beyond 'xmin_'/'xmax_')

Enumerator
EX_LINEAR 
EX_BSPLINE 
EX_CONSTANT 
EX_GLOBAL_LINEAR 

Constructor & Destructor Documentation

◆ TransformationModelBSpline()

TransformationModelBSpline ( const DataPoints data,
const Param params 
)

Constructor.

Exceptions
Exception::IllegalArgumentis thrown if a parameter is invalid.
Exception::UnableToFitis thrown if the B-spline fit fails.

◆ ~TransformationModelBSpline()

Destructor.

Member Function Documentation

◆ evaluate()

virtual double evaluate ( double  value) const
virtual

Evaluates the model at the given value.

Reimplemented from TransformationModel.

◆ getDefaultParameters()

static void getDefaultParameters ( Param params)
static

Gets the default parameters.

Member Data Documentation

◆ extrapolate_

enum { ... } extrapolate_

Method to use for extrapolation (beyond 'xmin_'/'xmax_')

◆ offset_max_

double offset_max_
protected

◆ offset_min_

double offset_min_
protected

Parameters for constant or linear extrapolation.

◆ slope_max_

double slope_max_
protected

◆ slope_min_

double slope_min_
protected

◆ spline_

BSpline2d* spline_
protected

Pointer to the actual B-spline.

◆ xmax_

double xmax_
protected

◆ xmin_

double xmin_
protected

Min./max. x value (endpoints of the data range)


OpenMS / TOPP release 2.3.0 Documentation generated on Tue Jan 9 2018 18:22:14 using doxygen 1.8.13