Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/icecrime/accumulators

Statistical accumulators library for Python
https://github.com/icecrime/accumulators

Last synced: 5 days ago
JSON representation

Statistical accumulators library for Python

Awesome Lists containing this project

README

        

Accumulators
=======

[![Build Status](https://travis-ci.org/icecrime/Accumulators.png)](https://travis-ci.org/icecrime/Accumulators) [![Coverage Status](https://coveralls.io/repos/icecrime/Accumulators/badge.png?branch=master)](https://coveralls.io/r/icecrime/Accumulators?branch=master)

Overview
-------------

Accumulators is a statistical accumulator package strongly inspired by [Boost.Accumulators](http://www.boost.org/doc/libs/1_53_0/doc/html/accumulators.html). It is in *very* early development stage, and I'm pretty much a Python's noob, so any help and/or constructive comments would be appreciated.

Usage
-------------

>>> from accumulators import AccumulatorSet, statistics
>>> accu_set = AccumulatorSet(statistics.mean, statistics.count)
>>> accu_set(1.1)(4.2)(12.8)

>>> accu_set.mean()
6.033333333333334
>>> accu_set.count()
3