Formulation of Steady State intermediate buffer values

The basic idea behind this is that as the initial data is input to the filtering function, the assumption is made that the filter is in a Steady State - that is to say, the input and output values of the filter are the same. In the case of the first datum, the output value is assumed to be equal, and so the buffer contents are set such that this is true.

Using the "direct form II" DSP algorithm, the value for the first element B0 of an intermediate buffer is calculated as follows

B 0 = x n + i = 1 N a i B i

Assuming a steady state, the input values xn and the buffer values Bi will be constant, so we can write

B = x + i = 1 N a i B

Dividing through by B gives

1 = x B + i = 1 N a i

And rearranging gives B in terms of the input value x, and the output coefficients ai

B = x 1- i N a i

Once the first value of x is entered into the filter, this is then used to compute B, which is then used to fill all the buffer variables. Subsequent input values are combined with feedback values derived from the buffer values in the normal way.