Supports various streaming quantile sketches
Supports various streaming quantile sketches
(byte-buffer->bytes buffer)
Convert a byte buffer to a byte array.
Convert a byte buffer to a byte array.
(bytes->byte-buffer bs)
Convert a bytebuffer to a byte array.
Convert a bytebuffer to a byte array.
(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.
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.
(add-point! digest x)
Add a value to the given digest, mutating the digest. Returns digest.
Add a value to the given digest, mutating the digest. Returns digest.
(merge-digest! digest other)
Merges the second digest into the first, mutating the first. Returns the first digest.
Merges the second digest into the first, mutating the first. Returns the first digest.
(point-count digest)
How many points went into this digest?
How many points went into this digest?
(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.
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 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}))
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 opts)
Constructs a new HDRHistogram for doubles. Default options:
{:highest-to-lowest-value-ratio 1e8
:significant-value-digits 3}
Constructs a new HDRHistogram for doubles. Default options: {:highest-to-lowest-value-ratio 1e8 :significant-value-digits 3}
(max digest)
The maximum point in the digest. For empty digests, nil.
The maximum point in the digest. For empty digests, nil.
(min digest)
The minimum point in the digest. For empty digests, nil.
The minimum point in the digest. For empty digests, nil.
(quantile digest q)
Returns a point near the given quantile.
Returns a point near the given quantile.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close