tesser.quantiles
Supports various streaming quantile sketches
->DualHistogram
(->DualHistogram neg pos)
Positional factory function for class tesser.quantiles.DualHistogram.
CumulativeDistribution
protocol
members
cumulative-distribution
(cumulative-distribution digest)
A non-normalized discrete cumulative distribution function for a digest, represented as an ascending-order sequence of [point
total]
pairs, where total
is the number of points in the digest which are less than or equal to point
. point
ranges from min to max, inclusive.
The cumulative distribution for an empty digest is an empty seq.
Digest
protocol
members
add-point!
(add-point! digest x)
Add a value to the given digest, mutating the digest. Returns digest.
merge-digest!
(merge-digest! digest other)
Merges the second digest into the first, mutating the first. Returns the first digest.
point-count
(point-count digest)
How many points went into this digest?
distribution
(distribution digest)
A discrete distribution function for a digest, represented as an ascending-order sequence of [point count]
pairs, where count
is the number of points less than or equal to point
, and greater than the previous point. Point ranges from min to max inclusive.
dual
(dual h)
(dual h opts)
HDRHistogram can’t deal with negative values. This function takes a function to construct a quantile estimator and returns a quantile estimator that uses two of the underlying estimator, one for positive numbers, and one for negative numbers.
(dual hdr-histogram {:significant-value-digits 4}))
hdr-histogram
(hdr-histogram)
(hdr-histogram opts)
Constructs a new HDRHistogram for doubles. Default options:
{:highest-to-lowest-value-ratio 1e13
:significant-value-digits 4}
map->DualHistogram
(map->DualHistogram m__7585__auto__)
Factory function for class tesser.quantiles.DualHistogram, taking a map of keywords to field values.
Quantile
protocol
members
max
(max digest)
The maximum point in the digest. For empty digests, nil.
min
(min digest)
The minimum point in the digest. For empty digests, nil.
quantile
(quantile digest q)
Returns a point near the given quantile.