comet_maths.interpolation.interpolation.Interpolator.interpolate_1d#
- Interpolator.interpolate_1d(x_i: ndarray, y_i: ndarray, x: ndarray) ndarray | Tuple[ndarray, ndarray] | Tuple[ndarray, ndarray, ndarray] [source]#
Interpolates 1D data to defined coordinates x in 1D
- Parameters:
x_i – Independent variable quantity x (coordinate data of y_i)
y_i – measured variable quantity y (data to interpolate)
x – Independent variable quantity x for which we are trying to obtain the measurand y
- Returns:
The measurand y_i evaluated at the values x