rust-average/README.md
Vinzent Steinberg 79f449e190 Improve README
2017-05-16 18:21:27 +02:00

595 B

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.