Computes the delay of a linear phase FIR filter.

Namespace: dsp::filter

Prototype

float fir_delay(int N)

Parameters

NNumber of coefficients

Returns

Delay \(\tau\) of the filter.

Description

This function returns the delay, expressed in number of samples, due to a linear phase FIR filter (e.g. with symetrical or anti-symetrical coefficients): \[ \tau = \frac{N-1}{2} \]