zooc.dsp.dither
Dithering algorithms.
- zooc.dsp.dither.dither_pattern(count, dither_levels)
Generate an unbiased dither pattern list.
The pattern is tiled and then adjusted so that its mean value is close to (levels - 1) / 2.
- zooc.dsp.dither.dither_weights(count, dither_levels)
Generate an unbiased dither weights.
The weights are tiled and then adjusted so that its mean value is close to zero. The noise injected to measurement signal should have an amplitude of weight*LSB.
Not all count & dither_levels combinations produces zero mean. For zero mean, use:
- When dither_levels is odd: count >= dither_levels - 2 - When dither_levels is even: count = even and >= dither_levels - 2