comnum.lagrange_cubic#
- comnum.lagrange_cubic(x, mu)#
Cubic Lagrange (Farrow) interpolation of four samples at
μ ∈ [-1, 1](μ = 0returnsx[2]; OptiCommPyinterpolator).- Parameters:
x (array_like) – four consecutive samples.
mu (float) – the fractional position.
- Returns:
the interpolated sample.
- Return type:
- Raises:
ValueError – for an input that is not an array of numbers of the expected shape.