pub struct SubMsSamples<'a> { /* private fields */ }Expand description
Borrowing facade over a sample slice. Zero-cost - holds a reference only. Lazy-sorts internally on demand for percentile queries.
Implementations§
Source§impl<'a> SubMsSamples<'a>
impl<'a> SubMsSamples<'a>
Sourcepub fn percentile(&self, q: f64) -> u64
pub fn percentile(&self, q: f64) -> u64
Arbitrary quantile in [0.0, 1.0]. Sorts internally.
Sourcepub fn percentile_sweep(
&self,
start: f64,
end: f64,
step: f64,
) -> Vec<(f64, u64)>
pub fn percentile_sweep( &self, start: f64, end: f64, step: f64, ) -> Vec<(f64, u64)>
Sweep across a quantile range.
Sourcepub fn cdf_buckets(&self) -> Vec<u64>
pub fn cdf_buckets(&self) -> Vec<u64>
Log2-spaced CDF buckets. Only available with the histogram
feature.
Sourcepub fn jitter_score(&self) -> f64
pub fn jitter_score(&self) -> f64
Measurement-rig jitter score in [0.0, 1.0]. Only available
with the jitter feature.
Sourcepub fn conditional_tail_expectation(&self, q: f64) -> u64
pub fn conditional_tail_expectation(&self, q: f64) -> u64
Conditional tail expectation. Only with tail feature.
Sourcepub fn tail_fatness_ratio(&self) -> f64
pub fn tail_fatness_ratio(&self) -> f64
Tail fatness ratio (p99 / p50). Only with tail feature.
Sourcepub fn hill_tail_index(&self, k: usize) -> Option<f64>
pub fn hill_tail_index(&self, k: usize) -> Option<f64>
Hill estimator. Only with tail feature.
Sourcepub fn median_absolute_deviation(&self) -> u64
pub fn median_absolute_deviation(&self) -> u64
Median absolute deviation. Only with robust feature.
Sourcepub fn coefficient_of_variation(&self) -> f64
pub fn coefficient_of_variation(&self) -> f64
Coefficient of variation. Only with robust feature.
Trait Implementations§
Source§impl<'a> Clone for SubMsSamples<'a>
impl<'a> Clone for SubMsSamples<'a>
Source§fn clone(&self) -> SubMsSamples<'a>
fn clone(&self) -> SubMsSamples<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> From<&'a [u64]> for SubMsSamples<'a>
impl<'a> From<&'a [u64]> for SubMsSamples<'a>
impl<'a> Copy for SubMsSamples<'a>
Auto Trait Implementations§
impl<'a> Freeze for SubMsSamples<'a>
impl<'a> RefUnwindSafe for SubMsSamples<'a>
impl<'a> Send for SubMsSamples<'a>
impl<'a> Sync for SubMsSamples<'a>
impl<'a> Unpin for SubMsSamples<'a>
impl<'a> UnsafeUnpin for SubMsSamples<'a>
impl<'a> UnwindSafe for SubMsSamples<'a>
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