pub struct DDSketch { /* private fields */ }
Implementations§
Source§impl DDSketch
impl DDSketch
pub fn accept(&mut self, value: f64)
pub fn accept_with_count(&mut self, value: f64, count: f64)
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
pub fn get_count(&mut self) -> f64
pub fn get_sum(&mut self) -> Option<f64>
pub fn get_max(&mut self) -> Option<f64>
pub fn get_min(&mut self) -> Option<f64>
pub fn get_average(&mut self) -> Option<f64>
pub fn get_value_at_quantile(self: &mut DDSketch, quantile: f64) -> Option<f64>
pub fn decode_and_merge_with(&mut self, bytes: &Vec<u8>) -> Result<(), Error>
pub fn merge_with(&mut self, other: &DDSketch) -> Result<(), Error>
pub fn encode(&self) -> Result<Vec<u8>, Error>
pub fn decode(bytes: &Vec<u8>) -> Result<DDSketch, Error>
Source§impl DDSketch
impl DDSketch
pub fn collapsing_lowest_dense( relative_accuracy: f64, max_num_bins: usize, ) -> Result<DDSketch, Error>
pub fn collapsing_highest_dense( relative_accuracy: f64, max_num_bins: usize, ) -> Result<DDSketch, Error>
pub fn unbounded_dense(relative_accuracy: f64) -> Result<DDSketch, Error>
pub fn logarithmic_collapsing_lowest_dense( relative_accuracy: f64, max_num_bins: usize, ) -> Result<DDSketch, Error>
pub fn logarithmic_collapsing_highest_dense( relative_accuracy: f64, max_num_bins: usize, ) -> Result<DDSketch, Error>
pub fn logarithmic_unbounded_size_dense_store( relative_accuracy: f64, ) -> Result<DDSketch, Error>
Auto Trait Implementations§
impl Freeze for DDSketch
impl !RefUnwindSafe for DDSketch
impl !Send for DDSketch
impl !Sync for DDSketch
impl Unpin for DDSketch
impl !UnwindSafe for DDSketch
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