Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 05-Oct-2021 | - | ||||
circllhist/ | H | 05-Oct-2021 | - | 235 | 190 | |
LICENSE | H A D | 05-Oct-2021 | 27.7 KiB | 554 | 464 | |
README.md | H A D | 05-Oct-2021 | 631 | 29 | 18 | |
RELEASE.md | H A D | 05-Oct-2021 | 722 | 20 | 14 | |
pyproject.toml | H A D | 05-Oct-2021 | 51 | 5 | 4 | |
setup.cfg | H A D | 05-Oct-2021 | 37 | 4 | 3 | |
setup.py | H A D | 05-Oct-2021 | 768 | 25 | 22 | |
test.py | H A D | 05-Oct-2021 | 1 KiB | 35 | 29 |
README.md
1# Python bindings for libcircllhist 2 3This package requires the [OpenHistogram](https://openhistogram.io) C library, 4libcircllhist, to be installed on your system: 5 6https://github.com/openhistogram/libcircllhist/ 7 8The bindings themselves can be installed via pip: 9 10 pip install circllhist 11 12Or manually via 13 14 python setup.py install 15 16from this folder. 17 18## Usage Example 19 20``` 21import circllhist 22 23h = circllhist.Circllhist() 24h.insert(123,3) # Insert value 123, three times 25h.insert_intscale(1,1) # Insert 1x10^1 26print(h.count()) # Print the count of used bins 27print(h.sum()) # Print the sum of all values 28``` 29