Skip to main content

Module sinc

Module sinc 

Source
Expand description

This module provides implementations of the sinc function and its normalized version, as well as functions to generate centered sinc windows. The sinc function is defined as sin(pi * x) / (pi * x) for x != 0 and is equal to 1 at x = 0. The normalized sinc function is defined similarly but with a factor of 2 in the argument. The centered sinc window functions generate a vector of sinc values that are centered around zero, which can be used in various signal processing applications, such as interpolation and filter design.

See the book entry FIR design: windows, frequency sampling and Parks-McClellan.

Functions§

generate_centered_sinc
n samples of sinc(cut_off · t) (or of the normalised sinc for generate_centered_sinc_normalized) at points t spaced 1/n apart and centred on zero, so t spans about [−1/2, 1/2]. The result is a smooth taper whose width depends on cut_off (for cut_off ≤ 2 every value is positive), used as a smoothing kernel; it is not the impulse response of a low-pass filter with that cutoff, for which see firwin.
generate_centered_sinc_normalized
sinc
sinc_normalized