pyvib.interpolate module¶
-
pyvib.interpolate.piecewise_linear(x, y, s, delta=None, xv=[])[source]¶ Interpolate piecewise segments.
Parameters: - x (ndarray) – x-coordinate for knots
- y (ndarray) – y-coordinate for knots
- s (ndarray. [len(x)+1]) – Slopes for line segments. Len: ‘number of knots’ + 1
- delta (ndarray) – Regularization interval, ie. enforce continuity of the derivative
- xv (ndarray) – x-coordinates for points to be interpolated
Returns: yv – Interpolated values
Return type: ndarray