B-spline (non-linear) model for transformations. More...
#include <OpenMS/ANALYSIS/MAPMATCHING/TransformationModelBSpline.h>
Public Member Functions | |
TransformationModelBSpline (const DataPoints &data, const Param ¶ms) | |
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 Param & | getParameters () const |
Gets the (actual) parameters. More... | |
Static Public Member Functions | |
static void | getDefaultParameters (Param ¶ms) |
Gets the default parameters. More... | |
Static Public Member Functions inherited from TransformationModel | |
static void | getDefaultParameters (Param ¶ms) |
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 | |
BSpline2d * | spline_ |
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, double > | DataPoint |
Coordinate pair. More... | |
typedef std::vector< DataPoint > | DataPoints |
Vector of coordinate pairs. More... | |
B-spline (non-linear) model for transformations.
|
protected |
TransformationModelBSpline | ( | const DataPoints & | data, |
const Param & | params | ||
) |
Constructor.
Exception::IllegalArgument | is thrown if a parameter is invalid. |
Exception::UnableToFit | is thrown if the B-spline fit fails. |
Destructor.
Evaluates the model at the given value.
Reimplemented from TransformationModel.
|
static |
Gets the default parameters.
enum { ... } extrapolate_ |
Method to use for extrapolation (beyond 'xmin_'/'xmax_')
|
protected |
|
protected |
Parameters for constant or linear extrapolation.
|
protected |
|
protected |
|
protected |
Pointer to the actual B-spline.
|
protected |
|
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 |