pub fn get_max_value_idx<T: PartialOrd + Display + Copy>(
values: &[T],
start_idx: usize,
n_idx: usize,
) -> Result<usize, WaveformError>
Expand description
Return the index of the maximum value in an array of floats.
Protip: f32 does not obey Ord, because of NaN, so this is done “by hand”