Go to file
Vinzent Steinberg 77fa8b4ed2 Remove inferior estimate of error of weighted average
It was a biased estimator, while the alternative one isn't.
2017-05-22 13:24:57 +02:00
benches Add test comparing to streaming-stats 2017-05-05 16:40:23 +02:00
src Remove inferior estimate of error of weighted average 2017-05-22 13:24:57 +02:00
tests Remove inferior estimate of error of weighted average 2017-05-22 13:24:57 +02:00
.gitignore Initial commit 2017-04-26 20:24:20 +02:00
.travis.yml Fix travis 2017-05-05 16:58:39 +02:00
Cargo.toml Bump version 2017-05-19 17:54:22 +02:00
README.md Improve README 2017-05-16 18:21:27 +02:00

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 | crates.io

Build Status

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.