TransformationDescription#
- class pyopenms.TransformationDescription#
Bases:
objectGeneric description of a coordinate transformation
- __init__() None#
- __init__(arg: collections.abc.Sequence[pyopenms.TransformationModel_DataPoint], /) None
- __init__(arg: pyopenms.TransformationDescription, /) None
Methods
__init__()apply(value)Apply the transformation to a value
fitModel(model_type[, params])Fits a model to the data
Get the data points used for the transformation
getDeviations([do_apply, do_sort])Get the deviations between the data pairs
Returns the model parameters
Gets the type of the fitted model
getModelTypes(result)Get available model types (fills list)
Returns summary statistics (data ranges and percentiles of the deviations before and after the transformation)
invert()Computes an (approximate) inverse of the transformation
setDataPoints(data)Overloaded function.
- apply(value: float) float#
Apply the transformation to a value
- fitModel(model_type: str, params: pyopenms.Param = Param({})) None#
Fits a model to the data
- getDataPoints() list[pyopenms.TransformationModel_DataPoint]#
Get the data points used for the transformation
- getDeviations(do_apply: bool = False, do_sort: bool = True) list[float]#
Get the deviations between the data pairs
- Parameters:
do_apply – Get deviations after applying the model?
do_sort – Sort the deviations before returning?
- Returns:
The deviations between the data pairs
- getModelParameters() pyopenms.Param#
Returns the model parameters
- getModelType() str#
Gets the type of the fitted model
- static getModelTypes(result: list) None#
Get available model types (fills list)
- getStatistics() pyopenms.TransformationStatistics#
Returns summary statistics (data ranges and percentiles of the deviations before and after the transformation)
- invert() None#
Computes an (approximate) inverse of the transformation
- setDataPoints(data: collections.abc.Sequence[tuple[float, float]]) None#
- setDataPoints(data: collections.abc.Sequence[pyopenms.TransformationModel_DataPoint]) None
Overloaded function.
setDataPoints(data: collections.abc.Sequence[tuple[float, float]]) -> None
Set the data points for the transformation (from pairs)
setDataPoints(data: collections.abc.Sequence[pyopenms.TransformationModel_DataPoint]) -> None
Set the data points for the transformation (from DataPoint objects)