math.stats #

fn freq #

fn freq(arr []f64, val f64) int

TODO: Implement all of them with generics This module defines the following statistical operations on f64 array --------------------------- | Summary of Functions | --------------------------- ----------------------------------------------------------------------- freq - Frequency mean - Mean geometric_mean - Geometric Mean harmonic_mean - Harmonic Mean median - Median mode - Mode rms - Root Mean Square population_variance - Population Variance sample_variance - Sample Variance population_stddev - Population Standard Deviation sample_stddev - Sample Standard Deviation mean_absdev - Mean Absolute Deviation min - Minimum of the Array max - Maximum of the Array range - Range of the Array ( max - min ) ----------------------------------------------------------------------- Measure of Occurance Frequency of a given number Based on https://www.mathsisfun.com/data/frequency-distribution.html

fn geometric_mean #

fn geometric_mean(arr []f64) f64

Measure of Central Tendancy Geometric Mean of the given input array Based on https://www.mathsisfun.com/numbers/geometric-mean.html

fn harmonic_mean #

fn harmonic_mean(arr []f64) f64

Measure of Central Tendancy Harmonic Mean of the given input array Based on https://www.mathsisfun.com/numbers/harmonic-mean.html

fn max #

fn max(arr []f64) f64

Maximum of the given input array

fn mean #

fn mean(arr []f64) f64

Measure of Central Tendancy Mean of the given input array Based on https://www.mathsisfun.com/data/central-measures.html

fn mean_absdev #

fn mean_absdev(arr []f64) f64

Measure of Dispersion / Spread Mean Absolute Deviation of the given input array Based on https://en.wikipedia.org/wiki/Average_absolute_deviation

fn median #

fn median(arr []f64) f64

Measure of Central Tendancy Median of the given input array ( input array is assumed to be sorted ) Based on https://www.mathsisfun.com/data/central-measures.html

fn min #

fn min(arr []f64) f64

Minimum of the given input array

fn mode #

fn mode(arr []f64) f64

Measure of Central Tendancy Mode of the given input array Based on https://www.mathsisfun.com/data/central-measures.html

fn population_stddev #

fn population_stddev(arr []f64) f64

Measure of Dispersion / Spread Population Standard Deviation of the given input array Based on https://www.mathsisfun.com/data/standard-deviation.html

fn population_variance #

fn population_variance(arr []f64) f64

Measure of Dispersion / Spread Population Variance of the given input array Based on https://www.mathsisfun.com/data/standard-deviation.html

fn range #

fn range(arr []f64) f64

Measure of Dispersion / Spread Range ( Maximum - Minimum ) of the given input array Based on https://www.mathsisfun.com/data/range.html

fn rms #

fn rms(arr []f64) f64

Root Mean Square of the given input array Based on https://en.wikipedia.org/wiki/Root_mean_square

fn sample_stddev #

fn sample_stddev(arr []f64) f64

Measure of Dispersion / Spread Sample Standard Deviation of the given input array Based on https://www.mathsisfun.com/data/standard-deviation.html

fn sample_variance #

fn sample_variance(arr []f64) f64

Measure of Dispersion / Spread Sample Variance of the given input array Based on https://www.mathsisfun.com/data/standard-deviation.html