Skip to main content

decimate

Function decimate 

Source
pub fn decimate(length: usize, count: usize) -> Vec<usize>
Expand description

Keeps every nth index of a run of length, for at most count of them.

The cheap reduction, and the one that loses peaks: a stride knows nothing about the samples it skips. It needs neither column, only how many there are.