TransformationDescription
- class pyopenms.TransformationDescription
Bases:
objectCython implementation of _TransformationDescription
Documentation is available at http://www.openms.de/current_doxygen/html/classOpenMS::TransformationDescription_1_1TransformationDescription.html
- __init__()
Cython signature: void TransformationDescription()
Cython signature: void TransformationDescription(TransformationDescription &)
Methods
Cython signature: void TransformationDescription()
Cython signature: double apply(double) Applies the transformation to value
Cython signature: void fitModel(String model_type, Param params)
Cython signature: libcpp_vector[TM_DataPoint] getDataPoints() Returns the data points
Cython signature: void getDeviations(libcpp_vector[double] & diffs, bool do_apply, bool do_sort)
Cython signature: Param getModelParameters() Returns the model parameters
Cython signature: String getModelType() Gets the type of the fitted model
Cython signature: void getModelTypes(StringList result)
Cython signature: TransformationStatistics getStatistics()
Cython signature: void invert() Computes an (approximate) inverse of the transformation
Cython signature: void setDataPoints(libcpp_vector[TM_DataPoint] & data)
- apply()
Cython signature: double apply(double) Applies the transformation to value
- fitModel()
Cython signature: void fitModel(String model_type, Param params) Fits a model to the data
Cython signature: void fitModel(String model_type) Fits a model to the data
- getDataPoints()
Cython signature: libcpp_vector[TM_DataPoint] getDataPoints() Returns the data points
- getDeviations()
Cython signature: void getDeviations(libcpp_vector[double] & diffs, bool do_apply, bool do_sort)
- Parameters
diffs – Output
do_apply – Get deviations after applying the model?
do_sort – Sort diffs before returning?
- getModelParameters()
Cython signature: Param getModelParameters() Returns the model parameters
- getModelType()
Cython signature: String getModelType() Gets the type of the fitted model
- getModelTypes()
Cython signature: void getModelTypes(StringList result)
- getStatistics()
Cython signature: TransformationStatistics getStatistics()
- invert()
Cython signature: void invert() Computes an (approximate) inverse of the transformation
- setDataPoints()
Cython signature: void setDataPoints(libcpp_vector[TM_DataPoint] & data) Sets the data points. Removes the model that was previously fitted to the data (if any)
Cython signature: void setDataPoints(libcpp_vector[libcpp_pair[double,double]] & data) Sets the data points (backwards-compatible overload). Removes the model that was previously fitted to the data (if any)