interp_c¶
- grizli.utils_numba.interp.interp_c(x, xp, fp, extrapolate=0.0, assume_sorted=1)[source]¶
Fast linear interpolation:
f(x) ~ fp(xp)
- Parameters
- xarray-like
Desired interpolant
- xp, fparray-like
Arrays to interpolate
- extrapolatefloat
Value to use where
x < xp.min()
orx > xp.max()
.- assume_sortedint, bool
The default value of True assumes that the
x
array is sorted and single-valued, providing a gain in speed.xp
is always assumed to be sorted.
- Returns
- farray-like
Interpolated values, same dimensions as
x