pub struct SampleSummary {
pub count: usize,
pub median: f64,
pub p95: f64,
pub p99: f64,
pub mad: f64,
pub min: f64,
pub max: f64,
}Expand description
Deterministic summary of one finite sample series.
§Examples
let summary = ailloli_ui_bench::summarize_samples(&[1.0, 2.0, 3.0])?;
assert_eq!(summary.median, 2.0);
assert_eq!(summary.count, 3);Fields§
§count: usizeNumber of samples summarized.
median: f64Standard median; even series average the two middle values.
p95: f64Nearest-rank 95th percentile.
p99: f64Nearest-rank 99th percentile.
mad: f64Median absolute deviation from Self::median.
min: f64Smallest sample.
max: f64Largest sample.
Trait Implementations§
Source§impl Clone for SampleSummary
impl Clone for SampleSummary
Source§fn clone(&self) -> SampleSummary
fn clone(&self) -> SampleSummary
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SampleSummary
impl Debug for SampleSummary
Source§impl PartialEq for SampleSummary
impl PartialEq for SampleSummary
Source§impl Serialize for SampleSummary
impl Serialize for SampleSummary
impl StructuralPartialEq for SampleSummary
Auto Trait Implementations§
impl Freeze for SampleSummary
impl RefUnwindSafe for SampleSummary
impl Send for SampleSummary
impl Sync for SampleSummary
impl Unpin for SampleSummary
impl UnwindSafe for SampleSummary
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