InterpolationModel#
- class pyopenms.InterpolationModel#
Bases:
objectAbstract class for 1D-models that are approximated using linear interpolation
- __init__() None#
- __init__(arg: pyopenms.InterpolationModel, /) None
Methods
__init__()Returns the "center" of the model, particular definition (depends on the derived model)
getIntensity(pos)Access model predicted intensity at position 'pos'
Returns the interpolation class
Returns the interpolation class
setInterpolationStep(interpolation_step)Sets the interpolation step for the linear interpolation of the model
setOffset(offset)Sets the offset of the model
Sets sample/supporting points of interpolation wrt params
setScalingFactor(scaling)Sets the scaling factor of the model
- getCenter() float#
Returns the “center” of the model, particular definition (depends on the derived model)
- getIntensity(pos: float) float#
- getIntensity(coord: float) float
Access model predicted intensity at position ‘pos’
- getInterpolation() pyopenms.LinearInterpolation#
Returns the interpolation class
- getScalingFactor() float#
Returns the interpolation class
- setInterpolationStep(interpolation_step: float) None#
Sets the interpolation step for the linear interpolation of the model
- setOffset(offset: float) None#
Sets the offset of the model
- setSamples() None#
Sets sample/supporting points of interpolation wrt params
- setScalingFactor(scaling: float) None#
Sets the scaling factor of the model