TransformationModelLinear#

class pyopenms.TransformationModelLinear#

Bases: object

Cython implementation of _TransformationModelLinear

Original C++ documentation is available here

– Inherits from [‘TransformationModel’]

__init__(self, data: List[TM_DataPoint], params: Param) None#

Methods

__init__(self, data, params)

checkDatumRange(self, datum, datum_min, ...)

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

checkValidWeight(self, weight, valid_weights)

Check for a valid weighting function string

evaluate(self, value)

getDefaultParameters

__static_TransformationModelLinear_getDefaultParameters(in_0: Param ) -> None

getParameters(self)

getValidXWeights(self)

Returns a list of valid x weight function stringss

getValidYWeights(self)

Returns a list of valid y weight function strings

invert(self)

unWeightData(self, data)

Unweight the data by the given weight function

unWeightDatum(self, datum, weight)

Apply the reverse of the weighting function to the data

weightData(self, data)

Weight the data by the given weight function

weightDatum(self, datum, weight)

Weight the data according to the weighting function

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

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

checkValidWeight(self, weight: bytes | str | String, valid_weights: List[bytes]) bool#

Check for a valid weighting function string

evaluate(self, value: float) float#
getDefaultParameters()#

__static_TransformationModelLinear_getDefaultParameters(in_0: Param ) -> None

getParameters(self) Param#
getValidXWeights(self) List[bytes]#

Returns a list of valid x weight function stringss

getValidYWeights(self) List[bytes]#

Returns a list of valid y weight function strings

invert(self) None#
unWeightData(self, data: List[TM_DataPoint]) None#

Unweight the data by the given weight function

unWeightDatum(self, datum: float, weight: bytes | str | String) float#

Apply the reverse of the weighting function to the data

weightData(self, data: List[TM_DataPoint]) None#

Weight the data by the given weight function

weightDatum(self, datum: float, weight: bytes | str | String) float#

Weight the data according to the weighting function