3 ms·
I'm no DSP expert, but I did run into a problem in GNU Radio which I think applies because it happens to floating point numbers in general. GNU radio has a com
by mikewarot 6y ago
I'm no DSP expert, but I did run into a problem in GNU Radio which I think applies because it happens to floating point numbers in general.
GNU radio has a component called "DC Block" which has a length of N samples... it averages those samples, and subtracts that average from the input... giving an output.
If you exceed the dynamic range of floating point by mixing inputs of lets say 1e12 and 1e-12... the filter can develop a permanent output bias.
The reason is performance... the samples are stored in a ring buffer, and they subtract the value when it leaves the buffer, and add the new value as it goes it. This is N times faster than adding up all the values, and subtracting. However... this bug can happen.
I suspect you have similar behavior occurring due to the smaller coefficients at the tails of the function.
That's my 2cents, I hope it made sense, and helps explain what you've encountered.
- willis936 6y agoYeah it’s definitely a FP dynamic range issue. Moving to extended point is impractical for a great many reasons. Transfer function form IIRs put high demands on FP dynamic range that other forms do not. This has real world parallels too, since the most basic way to realize an analog filter is with the transfer function method. I don’t know of anyone who makes a 2 F capacitor with tolerances that are within 2 pF.