pub fn estimate_sparsity_threshold<T>( signal: &[T], threshold: f64, ) -> FFTResult<usize>where T: NumCast + Copy + Debug + 'static,
Estimate sparsity using magnitude thresholding