Function stats::variance

source ·
pub fn variance<'a, I, T>(x: I) -> f64where
    I: IntoIterator<Item = T>,
    T: Into<&'a f64>,
Expand description

Compute the variance of a stream in constant space.

Examples found in repository?
src/online.rs (line 26)
20
21
22
23
24
25
26
27
pub fn variance<'a, I, T>(x: I) -> f64
where
    I: IntoIterator<Item = T>,
    T: Into<&'a f64>,
{
    let it = x.into_iter();
    variance(it)
}