Skip to main content

Module stats

Module stats 

Source
Expand description

Basic statistical utility functions.

This module provides fundamental descriptive statistics operations including measures of central tendency, dispersion, and position.

Structs§

FiveNumberSummary
Five-number summary statistics.
ModeResult
Result of the mode calculation.

Functions§

correlation
Calculates the correlation coefficient (Pearson’s r) between two slices.
five_number_summary
Calculates the five-number summary of a slice of f64 values.
max
Finds the maximum value in a slice of f64 values.
mean
Calculates the arithmetic mean (average) of a slice of f64 values.
median
Calculates the median of a slice of f64 values.
min
Finds the minimum value in a slice of f64 values.
mode
Calculates the mode(s) of a slice of f64 values.
quantile
Calculates a quantile of a slice of f64 values using linear interpolation.
range
Calculates the range (max - min) of a slice of f64 values.
stddev
Calculates the sample standard deviation of a slice of f64 values.
stddev_population
Calculates the population standard deviation of a slice of f64 values.
sum
Calculates the sum of a slice of f64 values.
variance
Calculates the sample variance of a slice of f64 values.
variance_population
Calculates the population variance of a slice of f64 values.