Dirichlet kernel (periodic cardinal sinus)

Namespace: dsp

Prototype

static double Dirichlet(int N, double Ω)

Description

\[ D_N(\Omega) = \sum_{k=-N}^N e^{-\mathbf{i}\Omega k} \]