concepts.math.interpolation_utils.LinearSpline#
- class LinearSpline[source]#
Bases:
SplineInterface
Linear spline interpolation.
This class is a wrapper of scipy.interpolate.interp1d that mimics the CubicSpline interface.
Methods
derivative
([n, x])from_points
(ys)get_next
(y, step_size[, minimum_x])Get the next target point on a spline interpolation.
project_to
(y[, minimum_x])Project a point to a linear spline interpolation.
- __new__(**kwargs)#
- derivative(n=1, x=None)#
- Parameters:
- Return type:
- get_next(y, step_size, minimum_x=None)#
Get the next target point on a spline interpolation.