Function calculate_stats

Source
pub fn calculate_stats(values: &[f64]) -> Option<Stats>
Expand description

Calculate statistics for an array of values.

This function calculates various statistics including min, max, quartiles, interquartile range (IQR), and mean.

§Arguments

  • values - Slice of values to analyze

§Returns

A Stats struct containing the calculated statistics