lower_quantile
Lower quantile aggregate function
Repository
tvondra/lower_quantile
https://github.com/tvondra/lower_quantile
Source
lower_quantile-1.0.3.tar.gz
lower_quantile-1.0.3.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
lower_quantile | 1.0.3 | FUNC | BSD-2-Clause | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 4620 | lower_quantile | No | Yes | No | Yes | No | No | - |
| Related | ddsketch tdigest weighted_statistics quantile topn count_distinct omnisketch datasketches hll |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.0.3 | 1817161514 | lower_quantile | - |
| RPM | PIGSTY | 1.0.3 | 1817161514 | lower_quantile_$v | - |
| DEB | PIGSTY | 1.0.3 | 1817161514 | postgresql-$v-lower-quantile | - |
Build
You can build the RPM / DEB packages for lower_quantile using pig build:
Install
You can install lower_quantile directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
Implements the “lower quantile” aggregate, which differs slightly from percentile_disc by returning the value whose rank in the sorted multiset is floor(1 + q*(n-1)).
Functions
| Function | Description |
|---|---|
lower_quantile(value, quantile float) | Compute the lower quantile for the given quantile value (0 to 1) |
Examples
This definition is used by some papers (e.g., the DDSketch paper) to formulate accuracy guarantees.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)