pub trait WaveletCompressionVec {
// Required method
fn compress(&self, coeffs: &[f64], tolerance: f64) -> Vec<f64> ⓘ;
}
Available on crate features
alloc
and wave
only.Expand description
Trait for lossy compression of wavelet coefficients.
Compresses coefficients based on a given tolerance, zeroing out those deemed insignificant to the desired error threshold.