LinearInterpolation#

class pyopenms.LinearInterpolation#

Bases: object

OpenMS 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

getInsideReferencePoint()

Returns the inside reference point

getOffset()

Returns the offset

getOutsideReferencePoint()

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

supportMax()

Returns the maximum support position

supportMin()

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.

  1. setMapping(scale: float, inside: float, outside: float) -> None

Sets the mapping

  1. 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