Numeric Statistics Rust crate
Numeric Statistics provides functions for min, max, average, variance, standard deviation, and more to come.
Example
use assert_eq_f64;
use ;
let values = &;
let min = min;
let max = max;
let average = average;
let variance = variance;
let standard_deviation = standard_deviation;
assert_eq!;
assert_eq!;
assert_eq_f64!;
assert_eq_f64!;
assert_eq_f64!;
All
You can create all the numeric statistics all within one struct:
use assert_eq_f64;
use All;
let values = &;
let all = new;
println!;
assert_eq!;
assert_eq!;
assert_eq_f64!;
assert_eq_f64!;
assert_eq_f64!;
Output:
min: 1.0
max: 4.0
average: 2.3333333333333335
variance: 2.333333333333333
standard deviation: 1.527525231651946
Num Command
This is a work-in-progress to translate the Num Command software from POSIX into Rust.