Skip to main content

Module quantile

Module quantile 

Source

Structsยง

QuantileOverTime

Functionsยง

quantile_impl ๐Ÿ”’
Refer to https://github.com/prometheus/prometheus/blob/6e2905a4d4ff9b47b1f6d201333f5bd53633f921/promql/quantile.go#L357-L386
quantile_with_scratch ๐Ÿ”’
Same as quantile_impl but reuses a caller-provided scratch buffer to avoid per-call allocation.
window_quantile ๐Ÿ”’
Quantile of one range window, or None when the window holds no sample.
window_samples ๐Ÿ”’
Returns the samples of the window [offset, offset + len), collecting the non-null ones into samples when the backing array has nulls and borrowing the slice otherwise.