No project description provided
Project description
zw_fast_quantile_py
zw-fast-quantile python binding
Installation
pip install zw_fast_quantile_py
Usage
import zw_fast_quantile_py
summary = zw_fast_quantile_py.IntQuantileSummary(0.01)
summary.update(1,2,3,4,5,6,7,8,9,10)
summary.query(0.0)
Benchmark
We calculate the median of [1, 1000]
, the zw_fast_quantile_py
is slightly slower than statistics.quantiles
due to the serilization cost between python and extension.
zw_fast_quantile_py
502
4.4792000000000096e-05
statistics.quantiles
499.5
3.883300000000027e-05
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for zw_fast_quantile_py-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e84344f717083e41f6e5f4fe88dd0e200f652915c6587d438ea722b52e3f607 |
|
MD5 | 3e78338be24377cb12c330084caf3e29 |
|
BLAKE2b-256 | 011ca0a7f653c36aa17ce388a215cf6b4fd0eaae896b07faf44d3e3d0916e235 |
Close
Hashes for zw_fast_quantile_py-0.2.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6075e506cb17cf539ea4104a345b8aa5b2391936343b1fb94e43c03ed96d085 |
|
MD5 | 6227883f3870e42e5d410a60c417abe9 |
|
BLAKE2b-256 | b25a3e0cb5ff75164e40c2f99334bb22a2bbfc85622ce8c634e680d41f420e34 |