pub struct DDSketch { /* private fields */ }
Expand description

This struct represents a DDSketch

Implementations

Construct a DDSketch. Requires a Config specifying the parameters of the sketch

Add the sample to the sketch

Return the quantile value for quantiles between 0.0 and 1.0. Result is an error, represented as DDSketchError::Quantile if the requested quantile is outside of that range.

If the sketch is empty the result is None, else Some(v) for the quantile value.

Returns the minimum value seen, or None if sketch is empty

Returns the maximum value seen, or None if sketch is empty

Returns the sum of values seen, or None if sketch is empty

Returns the number of values added to the sketch

Returns the length of the underlying Store. This is mainly only useful for understanding how much the sketch has grown given the inserted values.

Merge the contents of another sketch into this one. The sketch that is merged into this one is unchanged after the merge.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.