Function rgsl::statistics::max[][src]

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

This function returns 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.

If you want instead to find the element with the largest absolute magnitude you will need to apply fabs or abs to your data before calling this function.