skrf.mathFunctions.rational_interp¶
- skrf.mathFunctions.rational_interp(x, y, d=4, epsilon=1e-09, axis=0)[source]¶
Interpolates function using rational polynomials of degree d.
Interpolating function is singular when xi is exactly one of the original x points. If xi is closer than epsilon to one of the original points, then the value at that points is returned instead.
Implementation is based on 1.
- Parameters
x (npy.ndarray) –
y (npy.ndarray) –
d (int, optional) – order ot the polynomial, by default 4
epsilon (float, optional) – numerical tolerance, by default 1e-9
axis (int, optional) – axis to operate on, by default 0
- Returns
fx – Interpolate function
- Return type
Callable
- Raises
NotImplementedError – if axis != 0.
References
- 1
Floater and K. Hormann, “Barycentric rational interpolation with no poles and high rates of approximation,” Numer. Math., vol. 107, no. 2, pp. 315-331, Aug. 2007