average 0.5.0

Calculate the average of a sequence and its error iteratively
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# average

Calculate the average of a sequence and its error iteratively, using constant
memory and avoiding numerical problems. The calculation can be easily parallelized
by using `Average::merge`.

[Documentation](https://docs.rs/average) |
[crates.io](https://crates.io/crates/average)

[![Build Status](https://travis-ci.org/vks/average.svg?branch=master)](https://travis-ci.org/vks/average)

## Advantages over naive calculation of average and variance

* Avoids loss of precision due to cancellation.
* Only needs a single pass over the samples, at the cost of a division inside the loop.