TransformationModelBSpline#
- class pyopenms.TransformationModelBSpline#
Bases:
object
Cython implementation of _TransformationModelBSpline
- 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)Evaluates the model at the given values
__static_TransformationModelBSpline_getDefaultParameters(params: 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
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 #
Evaluates the model at the given values
- getDefaultParameters()#
__static_TransformationModelBSpline_getDefaultParameters(params: Param ) -> None
- 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
- 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