Trait linreg::IteratorMean[][src]

pub trait IteratorMean<F> {
    fn mean(&mut self) -> Option<F>;
}

Calculate a mean over an iterator

Required Methods

Calculates the mean value of all returned items of an iterator. Returns None if either no items are present or more items than can be counted by F (conversion from usize to F is not possible).

Implementors