dynax.interpolation

Interpolation utilities for signal data.

Functions

spline_it(ts, xs)

Create an interpolating cubic-spline function.

Classes

InterpolationFunction(ts, xs)

Interpolating cubic-spline function.

class dynax.interpolation.InterpolationFunction(ts, xs)[source]

Bases: Module

Interpolating cubic-spline function.

__call__(t)[source]

Evaluate the interpolating function at time t.

Return type:

Array

dynax.interpolation.spline_it(ts, xs)[source]

Create an interpolating cubic-spline function.

Parameters:
  • ts (Array) – Time sequence.

  • xs (Array) – Data points with first axis having the same length as t.

Returns:

InterpolationFunction – A function f(t) that computes the interpolated value at time t.