Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/icecrime/accumulators
- Owner: icecrime
- License: apache-2.0
- Created: 2013-02-28T22:26:27.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-17T22:52:30.000Z (over 10 years ago)
- Last Synced: 2024-04-17T08:10:27.747Z (7 months ago)
- Language: Python
- Size: 188 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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