pub struct TDigest { /* private fields */ }Expand description
t-digest data structure for quantile estimation.
Implementations§
Source§impl TDigest
impl TDigest
pub fn new(compression: f64) -> Self
pub fn add(&mut self, value: f64)
pub fn add_weighted(&mut self, value: f64, weight: f64)
pub fn count(&self) -> f64
pub fn centroid_count(&self) -> usize
pub fn min(&self) -> f64
pub fn max(&self) -> f64
pub fn merge(&mut self, other: &TDigest)
Auto Trait Implementations§
impl Freeze for TDigest
impl RefUnwindSafe for TDigest
impl Send for TDigest
impl Sync for TDigest
impl Unpin for TDigest
impl UnsafeUnpin for TDigest
impl UnwindSafe for TDigest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more