LinearInterpolation#
- class pyopenms.LinearInterpolation#
Bases:
objectOpenMS class LinearInterpolation
- __init__() None#
- __init__(arg: pyopenms.LinearInterpolation, /) None
- __init__(arg0: float, arg1: float, /) None
Methods
__init__()addValue(pos, value)Adds a value at the given position
derivative(pos)Returns the derivative at position
empty()Returns true if the data is empty
getData()Returns the data vector
Returns the inside reference point
Returns the offset
Returns the outside reference point
getScale()Returns the scale
index2key(pos)Transforms index to key
key2index(pos)Transforms key to index
setData(data)Sets the data
setMapping(scale, inside, outside)Overloaded function.
setOffset(offset)Sets the offset
setScale(scale)Sets the scale
Returns the maximum support position
Returns the minimum support position
value(pos)Returns interpolated value at position
- addValue(pos: float, value: float) None#
Adds a value at the given position
- derivative(pos: float) float#
Returns the derivative at position
- empty() bool#
Returns true if the data is empty
- getData() list[float]#
Returns the data vector
- getInsideReferencePoint() float#
Returns the inside reference point
- getOffset() float#
Returns the offset
- getOutsideReferencePoint() float#
Returns the outside reference point
- getScale() float#
Returns the scale
- index2key(pos: float) float#
Transforms index to key
- key2index(pos: float) float#
Transforms key to index
- setData(data: collections.abc.Sequence[float]) None#
Sets the data
- setMapping(scale: float, inside: float, outside: float) None#
- setMapping(inside_low: float, outside_low: float, inside_high: float, outside_high: float) None
Overloaded function.
setMapping(scale: float, inside: float, outside: float) -> None
Sets the mapping
setMapping(inside_low: float, outside_low: float, inside_high: float, outside_high: float) -> None
Sets the mapping from two pairs of reference points
- setOffset(offset: float) None#
Sets the offset
- setScale(scale: float) None#
Sets the scale
- supportMax() float#
Returns the maximum support position
- supportMin() float#
Returns the minimum support position
- value(pos: float) float#
Returns interpolated value at position