pyrex.internal_functions.complex_bilinear_interp¶
-
pyrex.internal_functions.
complex_bilinear_interp
(x, y, xp, yp, fp, method='cartesian', unwrap_axis=0)¶ Perform bilinear interpolation on complex values.
Calculates the bilinear interpolation of an array of complex values fp. Interpolates in real and imaginary parts for the Cartesian method, and interpolates in gain and (unwrapped) phase for the Euler method.
- Parameters
- xfloat
The x-coordinate at which to evaluate the interpolated values.
- yfloat
The y-coordinate at which to evaluate the interpolated values.
- xparray_like
The x-coordinates of the data points, must be increasing.
- yparray_like
The y-coordinates of the data points, must be increasing.
- fparray_like
The (complex-valued) z-coordinates of the data points, with its second dimension the same length as xp and its third dimension the same length as yp.
- method{‘cartesian’, ‘euler’}, optional
The interpolation method to use between data points. ‘Cartesian’ will interpolate linearly in the real/imaginary plane. ‘Euler’ will interpolate linearly in the gain and (unwrapped) phase values.
- unwrap_axisint, optional
When used with the ‘euler’ method, controls which axis of fp the phases are unwrapped around.
- Returns
- zndarray
The (complex-valued) interpolated values.
- Raises
- ValueError
If an unspecified interpolation method is given. Or if x or y lies outside of the range of xp or yp. Or if the shape of fp is incompatible with xp and yp.