devela::num::wave

Trait WaveletCompressionVec

Source
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.

Required Methods§

Source

fn compress(&self, coeffs: &[f64], tolerance: f64) -> Vec<f64>

Compresses wavelet coefficients by thresholding small values.

Implementors§