Function stats::mean

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

Compute the mean of a stream in constant space.

Examples found in repository?
src/online.rs (line 36)
30
31
32
33
34
35
36
37
pub fn mean<'a, I, T>(x: I) -> f64
where
    I: IntoIterator<Item = T>,
    T: Into<&'a f64>,
{
    let it = x.into_iter();
    mean(it)
}