Windowed sinc interpolator.

Namespace: dsp::filter

Prototype

sptr<InterpolatorFIR<T>> itrp_sinc(int ncoefs, float fcut=0.5, cstring window_type="hn")

Description

This is a FIR interpolator for which the coefficients are given by a windowed sinc function, with cut-off frequency \(f_c\) and with a delay of \(K/2 + \tau\) samples:

\[ h_k = \textrm{sinc}\left(k - K/2 - \tau, f_c\right) \cdot w_{k-\tau} \]

The sinc function used here is the inverse Fourier transform of frequential door window with width equal to \(\pm f_c\).

See also

InterpolatorFIR, itrp_cspline(), itrp_linear(), itrp_lagrange()