relentless.math.AkimaSpline#

class relentless.math.AkimaSpline(x, y)#

Interpolate using Akima splines.

Parameters:
  • x (array_like) – 1D array of x coordinates that must be continually increasing.

  • y (array_like) – 1D array of y coordinates.

Methods

derivative(x, n)

Evaluate the \(n\)th derivative of the interpolating function.

Attributes

domain

The valid domain for interpolation.

table

The interpolated data.

derivative(x, n)#

Evaluate the \(n\)th derivative of the interpolating function.

Parameters:
  • x (float or array_like) – 1-d array of \(x\) coordinates to evaluate.

  • n (int) – The order of the derivative to take.

Returns:

result – Interpolated derivative values having the same form as x.

Return type:

float or numpy.ndarray

property domain#

The valid domain for interpolation.

Type:

tuple

property table#

The interpolated data.

Type:

numpy.ndarray