TransformationModelLinear#
- class pyopenms.TransformationModelLinear#
Bases:
objectLinear model for transformations
- __init__(arg0: collections.abc.Sequence[pyopenms.TransformationModel_DataPoint], arg1: pyopenms.Param, /) None#
Methods
__init__(arg0, arg1, /)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)getDefaultParameters(params)Get default parameters
Gets the (actual) parameters
Returns a list of valid x weight function stringss
Returns a list of valid y weight function strings
invert()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#
- static getDefaultParameters(params: pyopenms.Param) None#
Get default parameters
- getParameters() pyopenms.Param#
Gets the (actual) parameters
- getValidXWeights() list[str]#
Returns a list of valid x weight function stringss
- getValidYWeights() list[str]#
Returns a list of valid y weight function strings
- invert() None#
- 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
datais 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
datais also updated in place with the returned contents.
- weightDatum(datum: float, weight: str) float#
Weight the data according to the weighting function