TransformationDescription

class pyopenms.TransformationDescription

Bases: object

Cython 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

__init__

  • Cython signature: void TransformationDescription()

apply

Cython signature: double apply(double) Applies the transformation to value

fitModel

  • Cython signature: void fitModel(String model_type, Param params)

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)

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)

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)