Function apply_threshold
pub fn apply_threshold(
coeffs: &[f64],
threshold: f64,
method: ThresholdMethod,
) -> Vec<f64>pub fn apply_threshold(
coeffs: &[f64],
threshold: f64,
method: ThresholdMethod,
) -> Vec<f64>