Function rgsl::statistics::absdev[][src]

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

This function computes the absolute deviation from the mean of data, a dataset of length n with stride stride. The absolute deviation from the mean is defined as,

absdev = (1/N) \sum |x_i - \Hat\mu|

where x_i are the elements of the dataset data. The absolute deviation from the mean provides a more robust measure of the width of a distribution than the variance. This function computes the mean of data via a call to gsl_stats_mean.