where L is the order of the filter, x(n) is the secondary input signal, wk are the filter coefficients and y(n) is the filter output.
The error signal e(n) is defined as the difference between the primary signal d(n) and the filter output y(n), that is,