Trait ripple::signal::sampling::Downsample[][src]

pub trait Downsample<D> {
    fn downsample(&self, dst: &mut D);
}
Expand description

Represents a downsampling action, which might imply a low-pass filtering and taking every ith value of a buffer. The downsampling ratio should be defined by the dimension mismatch between the source and the destination. Usually, source/dest will have their dimensions mismatching by a fixed factor. Might work in either direction from owned or borrowed structures (downsampling into a mutable window should change the reference it points into, assuming a same lifetime from both buffers).

Required methods

Implementors