Struct sketches_rust::DDSketch

source ·
pub struct DDSketch<I: IndexMapping, S: Store> { /* private fields */ }

Implementations§

source§

impl<I: IndexMapping, S: Store> DDSketch<I, S>

source

pub fn accept(&mut self, value: f64)

source

pub fn accept_with_count(&mut self, value: f64, count: f64)

source

pub fn is_empty(&self) -> bool

source

pub fn clear(&mut self)

source

pub fn get_count(&mut self) -> f64

source

pub fn get_sum(&mut self) -> Option<f64>

source

pub fn get_max(&mut self) -> Option<f64>

source

pub fn get_min(&mut self) -> Option<f64>

source

pub fn get_average(&mut self) -> Option<f64>

source

pub fn get_value_at_quantile( self: &mut DDSketch<I, S>, quantile: f64 ) -> Option<f64>

source

pub fn decode_and_merge_with( &mut self, input: &mut impl Input ) -> Result<(), Error>

source

pub fn merge_with(&mut self, other: &mut DDSketch<I, S>) -> Result<(), Error>

source§

impl DDSketch<CubicallyInterpolatedMapping, CollapsingLowestDenseStore>

source

pub fn collapsing_lowest_dense( relative_accuracy: f64, max_num_bins: usize ) -> Result<DDSketch<CubicallyInterpolatedMapping, CollapsingLowestDenseStore>, Error>

source§

impl DDSketch<CubicallyInterpolatedMapping, CollapsingHighestDenseStore>

source

pub fn collapsing_highest_dense( relative_accuracy: f64, max_num_bins: usize ) -> Result<DDSketch<CubicallyInterpolatedMapping, CollapsingHighestDenseStore>, Error>

source§

impl DDSketch<CubicallyInterpolatedMapping, UnboundedSizeDenseStore>

source

pub fn unbounded_dense( relative_accuracy: f64 ) -> Result<DDSketch<CubicallyInterpolatedMapping, UnboundedSizeDenseStore>, Error>

source§

impl DDSketch<LogarithmicMapping, CollapsingLowestDenseStore>

source

pub fn logarithmic_collapsing_lowest_dense( relative_accuracy: f64, max_num_bins: usize ) -> Result<DDSketch<LogarithmicMapping, CollapsingLowestDenseStore>, Error>

source§

impl DDSketch<LogarithmicMapping, CollapsingHighestDenseStore>

source

pub fn logarithmic_collapsing_highest_dense( relative_accuracy: f64, max_num_bins: usize ) -> Result<DDSketch<LogarithmicMapping, CollapsingHighestDenseStore>, Error>

Auto Trait Implementations§

§

impl<I, S> RefUnwindSafe for DDSketch<I, S>where I: RefUnwindSafe, S: RefUnwindSafe,

§

impl<I, S> Send for DDSketch<I, S>where I: Send, S: Send,

§

impl<I, S> Sync for DDSketch<I, S>where I: Sync, S: Sync,

§

impl<I, S> Unpin for DDSketch<I, S>where I: Unpin, S: Unpin,

§

impl<I, S> UnwindSafe for DDSketch<I, S>where I: UnwindSafe, S: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.