TransformationModelInterpolated#

class pyopenms.TransformationModelInterpolated#

Bases: object

Interpolation model for transformations

Between the data points, the interpolation uses the neighboring points. Supports linear, cspline, and akima interpolation methods. TransformationModel

__init__(data: collections.abc.Sequence[pyopenms.TransformationModel_DataPoint], params: pyopenms.Param) → None#

Methods

__init__(data, params)

checkDatumRange(datum, datum_min, datum_max)

Check that the datum is within the valid min and max bounds

checkValidWeight(weight, valid_weights)

Check for a valid weighting function string

evaluate(value)

Evaluate the interpolation model at the given value

getDefaultParameters()

Get default parameters

getParameters()

Gets the (actual) parameters

getValidXWeights()

Returns a list of valid x weight function strings

getValidYWeights()

Returns a list of valid y weight function strings

unWeightData(data)

Unweight the data by the given weight function, returns unweighted data

unWeightDatum(datum, weight)

Apply the reverse of the weighting function to the data

weightData(data)

Weight the data by the given weight function, returns weighted data

weightDatum(datum, weight)

Weight the data according to the weighting function

checkDatumRange(datum: float, datum_min: float, datum_max: float) → float#

Check that the datum is within the valid min and max bounds

checkValidWeight(weight: str, valid_weights: list[str]) → bool#

Check for a valid weighting function string

evaluate(value: float) → float#

Evaluate the interpolation model at the given value

Parameters:

value – The position where the interpolation should be evaluated

Returns:

The interpolated value

static getDefaultParameters() → pyopenms.Param#

Get default parameters

getParameters() → pyopenms.Param#

Gets the (actual) parameters

getValidXWeights() → list[str]#

Returns a list of valid x weight function strings

getValidYWeights() → list[str]#

Returns a list of valid y weight function strings

unWeightData(data: collections.abc.Sequence[pyopenms.TransformationModel_DataPoint]) → list[pyopenms.TransformationModel_DataPoint]#

Unweight the data by the given weight function, returns unweighted data

In/out compatibility (pyOpenMS 3.5 behaviour): a Python list passed as data is also updated in place with the returned contents.

unWeightDatum(datum: float, weight: str) → float#

Apply the reverse of the weighting function to the data

weightData(data: collections.abc.Sequence[pyopenms.TransformationModel_DataPoint]) → list[pyopenms.TransformationModel_DataPoint]#

Weight the data by the given weight function, returns weighted data

In/out compatibility (pyOpenMS 3.5 behaviour): a Python list passed as data is also updated in place with the returned contents.

weightDatum(datum: float, weight: str) → float#

Weight the data according to the weighting function