Skip to main content

DitherSource

Trait DitherSource 

Source
pub trait DitherSource {
    // Required method
    fn next_unit(&mut self) -> f32;

    // Provided method
    fn next(&mut self, eps_lsb: f32) -> f32 { ... }
}
Expand description

Trait implemented by any deterministic dither source.

Required Methods§

Source

fn next_unit(&mut self) -> f32

Advance the sequence and return the next zero-mean offset in [-0.5, +0.5].

Provided Methods§

Source

fn next(&mut self, eps_lsb: f32) -> f32

Scale output to ε × LSB amplitude.

Implementors§