• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..05-Oct-2021-

circllhist/H05-Oct-2021-235190

LICENSEH A D05-Oct-202127.7 KiB554464

README.mdH A D05-Oct-2021631 2918

RELEASE.mdH A D05-Oct-2021722 2014

pyproject.tomlH A D05-Oct-202151 54

setup.cfgH A D05-Oct-202137 43

setup.pyH A D05-Oct-2021768 2522

test.pyH A D05-Oct-20211 KiB3529

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