TransformationModelInterpolated

class pyopenms.TransformationModelInterpolated

Bases: object

Cython implementation of _TransformationModelInterpolated

Documentation is available at http://www.openms.de/current_doxygen/html/classOpenMS_1_1TransformationModelInterpolated.html

– Inherits from [‘TransformationModel’]

__init__()

Cython signature: void TransformationModelInterpolated(libcpp_vector[TM_DataPoint] & data, Param & params)

Methods

__init__

Cython signature: void TransformationModelInterpolated(libcpp_vector[TM_DataPoint] & data, Param & params)

checkDatumRange

Cython signature: 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

checkValidWeight

Cython signature: bool checkValidWeight(const String & weight, libcpp_vector[String] & valid_weights) Check for a valid weighting function string

evaluate

Cython signature: double evaluate(double value)

getDefaultParameters

Cython signature: void getDefaultParameters(Param &) Gets the default parameters

getParameters

Cython signature: Param getParameters()

getValidXWeights

Cython signature: libcpp_vector[String] getValidXWeights() Returns a list of valid x weight function stringss

getValidYWeights

Cython signature: libcpp_vector[String] getValidYWeights() Returns a list of valid y weight function strings

unWeightData

Cython signature: void unWeightData(libcpp_vector[TM_DataPoint] & data) Unweight the data by the given weight function

unWeightDatum

Cython signature: double unWeightDatum(double & datum, const String & weight) Apply the reverse of the weighting function to the data

weightData

Cython signature: void weightData(libcpp_vector[TM_DataPoint] & data) Weight the data by the given weight function

weightDatum

Cython signature: double weightDatum(double & datum, const String & weight) Weight the data according to the weighting function

checkDatumRange()

Cython signature: 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

checkValidWeight()

Cython signature: bool checkValidWeight(const String & weight, libcpp_vector[String] & valid_weights) Check for a valid weighting function string

evaluate()

Cython signature: double evaluate(double value)

Parameters

value – The position where the interpolation should be evaluated

Returns

The interpolated value

getDefaultParameters()

Cython signature: void getDefaultParameters(Param &) Gets the default parameters

getParameters()

Cython signature: Param getParameters()

getValidXWeights()

Cython signature: libcpp_vector[String] getValidXWeights() Returns a list of valid x weight function stringss

getValidYWeights()

Cython signature: libcpp_vector[String] getValidYWeights() Returns a list of valid y weight function strings

unWeightData()

Cython signature: void unWeightData(libcpp_vector[TM_DataPoint] & data) Unweight the data by the given weight function

unWeightDatum()

Cython signature: double unWeightDatum(double & datum, const String & weight) Apply the reverse of the weighting function to the data

weightData()

Cython signature: void weightData(libcpp_vector[TM_DataPoint] & data) Weight the data by the given weight function

weightDatum()

Cython signature: double weightDatum(double & datum, const String & weight) Weight the data according to the weighting function