BSD Ports

devel/py-ddsketch 3.0.1 DragonFly

Distributed quantile sketches

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
APACHE20
Categories
devel, python
Package size
35.4 KiB, 201.5 KiB installed

Description

This is the Python implementation of the distributed quantile sketch algorithm DDSketch. DDSketch has relative-error guarantees for any quantile q in [0, 1]. That is if the true value of the qth-quantile is x then DDSketch returns a value y such that |x-y| / x < e where e is the relative error parameter. (The default here is set to 0.01.) DDSketch is also fully mergeable, meaning that multiple sketches from distributed systems can be combined in a central node.

Our default implementation, DDSketch, is guaranteed to not grow too large in size for any data that can be described by a distribution whose tails are sub-exponential.

We also provide implementations (LogCollapsingLowestDenseDDSketch and LogCollapsingHighestDenseDDSketch) where the q-quantile will be accurate up to the specified relative error for q that is not too small (or large). Concretely, the q-quantile will be accurate up to the specified relative error as long as it belongs to one of the m bins kept by the sketch. If the data is time in seconds, the default of m = 2048 covers 80 microseconds to 1 year.

In the other systems

SystemPortVersion
DragonFlydevel/py-ddsketch3.0.1
FreeBSDdevel/py-ddsketch3.0.1
HardenedBSDdevel/py-ddsketch3.0.1
GhostBSDdevel/py-ddsketch3.0.1

Install

Binary package:

pkg install py311-ddsketch

From DPorts:

cd /usr/dports/devel/py-ddsketch && make install clean

Dependencies

Run dependencies 2

No port depends on this one.