pub fn apply_threshold( coeffs: &[f64], threshold: f64, mode: ThresholdMode, ) -> Vec<f64>
Apply thresholding to a coefficient vector.