OpenMS
2.8.0
|
Lowess (non-linear) model for transformations. More...
#include <OpenMS/ANALYSIS/MAPMATCHING/TransformationModelLowess.h>
Public Member Functions | |
TransformationModelLowess (const DataPoints &data, const Param ¶ms) | |
Constructor. More... | |
~TransformationModelLowess () override | |
Destructor. More... | |
double | evaluate (double value) const override |
Evaluates the model at the given value. More... | |
const Param & | getParameters () const |
Gets the (actual) parameters. More... | |
Public Member Functions inherited from TransformationModel | |
TransformationModel () | |
Constructor. More... | |
TransformationModel (const TransformationModel::DataPoints &, const Param &) | |
virtual | ~TransformationModel () |
Destructor. More... | |
virtual void | weightData (DataPoints &data) |
Weight the data by the given weight function. More... | |
virtual void | unWeightData (DataPoints &data) |
Unweight the data by the given weight function. More... | |
bool | checkValidWeight (const String &weight, const std::vector< String > &valid_weights) const |
Check for a valid weighting function string. More... | |
double | checkDatumRange (const double &datum, const double &datum_min, const double &datum_max) |
Check that the datum is within the valid min and max bounds. More... | |
double | weightDatum (const double &datum, const String &weight) const |
Weight the data according to the weighting function. More... | |
double | unWeightDatum (const double &datum, const String &weight) const |
Apply the reverse of the weighting function to the data. More... | |
const Param & | getParameters () const |
Gets the (actual) parameters. More... | |
std::vector< String > | getValidXWeights () const |
Returns a list of valid x weight function strings. More... | |
std::vector< String > | getValidYWeights () const |
Returns a list of valid y weight function strings. 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 Attributes | |
TransformationModelInterpolated * | model_ |
Pointer to the underlying interpolation. More... | |
Protected Attributes inherited from TransformationModel | |
Param | params_ |
Parameters. More... | |
String | x_weight_ |
x weighting More... | |
double | x_datum_min_ |
double | x_datum_max_ |
String | y_weight_ |
y weighting More... | |
double | y_datum_min_ |
double | y_datum_max_ |
bool | weighting_ |
Additional Inherited Members | |
Public Types inherited from TransformationModel | |
typedef std::vector< DataPoint > | DataPoints |
Vector of coordinate pairs. More... | |
Lowess (non-linear) model for transformations.
TransformationModelLowess | ( | const DataPoints & | data, |
const Param & | params | ||
) |
Constructor.
Exception::IllegalArgument | is thrown if too few data points are provided. |
|
override |
Destructor.
|
inlineoverridevirtual |
Evaluates the model at the given value.
Reimplemented from TransformationModel.
|
static |
Gets the default parameters.
const Param& getParameters |
Gets the (actual) parameters.
|
protected |
Pointer to the underlying interpolation.