Skip to main content

No project description provided

Project description

zw_fast_quantile_py

CI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zw_fast_quantile_py-0.2.0.tar.gz (9.7 kB view hashes)

Uploaded Source

Built Distribution

zw_fast_quantile_py-0.2.0-cp39-cp39-macosx_11_0_arm64.whl (172.8 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page