Liking cljdoc? Tell your friends :D

tesser.quantiles

Supports various streaming quantile sketches

Supports various streaming quantile sketches
raw docstring

byte-buffer->bytesclj

(byte-buffer->bytes buffer)

Convert a byte buffer to a byte array.

Convert a byte buffer to a byte array.
sourceraw docstring

bytes->byte-bufferclj

(bytes->byte-buffer bs)

Convert a bytebuffer to a byte array.

Convert a bytebuffer to a byte array.
sourceraw docstring

CumulativeDistributioncljprotocol

cumulative-distributionclj

(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.
source

Digestcljprotocol

add-point!clj

(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!clj

(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-countclj

(point-count digest)

How many points went into this digest?

How many points went into this digest?
source

distributionclj

(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.
sourceraw docstring

dualclj

(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}))
sourceraw docstring

DualHistogramclj

source

hdr-histogramclj

(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}
sourceraw docstring

Quantilecljprotocol

maxclj

(max digest)

The maximum point in the digest. For empty digests, nil.

The maximum point in the digest. For empty digests,
nil.

minclj

(min digest)

The minimum point in the digest. For empty digests, nil.

The minimum point in the digest. For empty digests,
nil.

quantileclj

(quantile digest q)

Returns a point near the given quantile.

Returns a point near the given quantile.
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close