Function rgsl::statistics::max_index[][src]

pub fn max_index(data: &[f64], stride: usize, n: usize) -> usize
Expand description

This function returns the index of the maximum value in data, a dataset of length n with stride stride. The maximum value is defined as the value of the element x_i which satisfies x_i >= x_j for all j. When there are several equal maximum elements then the first one is chosen.