Function engram::statistics::mean_ci
source · pub fn mean_ci<T: Into<f64> + Copy + Add + Sub>(
data: &[T],
confidence: f64
) -> Result<(f64, f64), String>
Expand description
Returns the mean confidence interval of a list of values. Confidence level is a value between 0 and 1.
§Examples
let values = vec![1.0, 2.0, 3.0, 4.0, 5.0];
let mean_ci = mean_ci(&values, 0.95).unwrap();