Laurence Withers
4c0680fb02
iir_parse_n(): fix silly bug
...
Fixed a silly bug that caused iir_parse_n() to fail for n>1.
2011-04-15 18:05:37 +00:00
Laurence Withers
bc383a92da
iir_filter_copy(): don't copy uninitialised state
...
If iir_filter_copy() was called on a filter which had no state, it would copy
the uninitialised memory from that filter. Check for this.
2011-04-15 17:56:48 +00:00
Laurence Withers
9a87889dd3
Improve initial conditions
...
Compute the DC gain of the filter (assuming 0 if unstable) and use that to
set the initial conditions of a filter as follows:
x(t<0)=x(0)
y(t<0)=x(0) × dc_gain
2011-04-15 17:53:44 +00:00
Laurence Withers
2031d084cc
Bump version
2010-11-08 15:18:39 +00:00
Laurence Withers
ce36ca9ef5
Import initial work
2010-11-08 15:18:07 +00:00