interp_1d_point_with_error

sofia_redux.toolkit.interpolate.interpolate.interp_1d_point_with_error(x, y, error, xout)[source]

Perform linear interpolation at a single point with error propagation. x must be monotonically increasing or decreasing containing unique values.

Superfast compared to anything else including numpy.interp.

Parameters:
xarray_like of float

(N,) array of independent values. Must be monotonically increasing or decreasing.

yarray_like of float

(N,) array of dependent values.

errorarray_like of float

(N,) array of errors in dependent values.

xoutfloat

New independent value.

Returns:
yout, eoutfloat, float

The new dependent values and error at xout.