interpax_fft.irfft_interp1d

interpax_fft.irfft_interp1d(c: Num[Array, 'nx ...'] | Num[ndarray, 'nx ...'] | Num[TypedNdArray, 'nx ...'], nx: int, n: int, sx: Num[Array, 's'] | Num[ndarray, 's'] | Num[TypedNdArray, 's'] | None = None, dx: float = 1.0) Inexact[Array, 'n ... s']Source

Interpolation of a 1D Hermitian Fourier series via FFT.

Parameters:
  • c (ndarray, shape(nx // 2 + 1, ...)) – Fourier coefficients jnp.fft.rfft(f,axis=0,norm="forward").

  • nx (bool) – Number of sample points e.g. f.shape[0].

  • n (int) – Number of desired interpolation points.

  • sx (ndarray or None) – Shift in x to evaluate at. If original data is f(x), interpolates to f(x + sx).

  • dx (float) – Spacing of source points.

Returns:

fi (ndarray, shape(n, …, len(sx))) – Interpolated (and possibly shifted) data points.