Basic statistical functions on streams for Rust.