Skip to main content

Ensemble averages

Project description


CI Documentation Status Conda Version PyPi release



enstat is a library to facilitate the computation of ensemble averages (and their standard deviation and variance). The key feature is that a class stored the sum of the first and second statistical moments and the number of samples, such that adding a sample can be done trivially, while giving access to the mean etc. at all times.


This library is free to use under the MIT license. Any additions are very much appreciated, in terms of suggested functionality, code, documentation, testimonials, word-of-mouth advertisement, etc. Bug reports or feature requests can be filed on GitHub. As always, the code comes with no guarantee. None of the developers can be held responsible for possible mistakes.

Download: .zip file | .tar.gz file.

(c - MIT) T.W.J. de Geus (Tom) | | |


Using conda

conda install -c conda-forge enstat

Using PyPi

pip install enstat



  • [BREAKING CHANGE] Changing shape, size, dtype, first, second, norm to properties rather than functions (now call without ())
  • Adding add_point to array classes
  • [tests] Using unittest discover
  • [docs] Using furo theme. Minor updates.


  • Enforcing shape to be a tuple (like in NumPy) (#14)


  • Simplifying namespace. Using opportunity to simplify class names
  • Avoiding zero division warning
  • Adding test with defaultdict


  • Return NaN when there is no data (before zero was returned)
  • (style) Fixing pre-commit
  • (style) Renaming "test" -> "tests"
  • (style) Applying pre-commit


  • Adding mask option to enstat.static.StaticNd.


  • Adding size and shape methods.
  • Various generalisations.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

enstat-0.7.0.tar.gz (16.9 kB view hashes)

Uploaded Source

Built Distribution

enstat-0.7.0-py3-none-any.whl (10.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page