Allpassphase Page

[ H(z) = \fraca + z^-11 + a z^-1 ]

Where ( a ) is the coefficient determining the cutoff frequency. The magnitude ( |H(z)| = 1 ) for all ( z ), but the phase ( \angle H(z) ) shifts from 0 to -180 degrees (or 0 to -360 degrees for second-order filters). To understand allpassphase, you must understand group delay —the derivative of phase with respect to frequency. Group delay measures the time delay each frequency component experiences as it passes through a system. allpassphase

import numpy as np def allpass_first_order(x, a): y = np.zeros_like(x) y_prev = 0 x_prev = 0 for n in range(len(x)): y[n] = a * x[n] + x_prev - a * y_prev x_prev = x[n] y_prev = y[n] return y [ H(z) = \fraca + z^-11 + a