Expand description
Descriptive statistics for matrices.
Provides means, variances, medians and other aggregations computed either across the whole matrix or along a specific axis.
use rustframe::compute::stats::descriptive;
use rustframe::matrix::Matrix;
let m = Matrix::from_vec(vec![1.0, 2.0, 3.0, 4.0], 2, 2);
assert_eq!(descriptive::mean(&m), 2.5);
Functionsยง
- mean
- mean_
horizontal - mean_
vertical - median
- median_
horizontal - median_
vertical - percentile
- percentile_
horizontal - percentile_
vertical - population_
variance - population_
variance_ horizontal - population_
variance_ vertical - sample_
variance - sample_
variance_ horizontal - sample_
variance_ vertical - stddev
- stddev_
horizontal - stddev_
vertical