Skip to main content

downsample_peaks

Function downsample_peaks 

Source
pub fn downsample_peaks(peaks: &[u8], buckets: usize) -> Vec<u8> 
Expand description

Reduce amplitude peaks to at most buckets values, preserving the maximum value from each source window.