Z-score helpers for f64 slices.
Normalization uses the population standard deviation of the provided sample.
Examples
use ;
assert_eq!;
assert_eq!;
Z-score helpers for f64 slices.
Normalization uses the population standard deviation of the provided sample.
use use_z_score::{normalize, z_score};
assert_eq!(z_score(80.0, 70.0, 5.0).unwrap(), 2.0);
assert_eq!(normalize(&[1.0, 2.0, 3.0]).unwrap().len(), 3);