pub struct CuDurationStatistics { /* private fields */ }
Expand description
A Specialized statistics object for CuDuration. It will also keep track of the jitter between the values.
Implementations§
Source§impl CuDurationStatistics
impl CuDurationStatistics
pub fn new(max: CuDuration) -> CuDurationStatistics
pub fn min(&self) -> CuDuration
pub fn max(&self) -> CuDuration
pub fn mean(&self) -> CuDuration
pub fn percentile(&self, percentile: f64) -> CuDuration
pub fn stddev(&self) -> CuDuration
pub fn len(&self) -> u64
pub fn is_empty(&self) -> bool
pub fn jitter_min(&self) -> CuDuration
pub fn jitter_max(&self) -> CuDuration
pub fn jitter_mean(&self) -> CuDuration
pub fn jitter_stddev(&self) -> CuDuration
pub fn jitter_percentile(&self, percentile: f64) -> CuDuration
pub fn record(&mut self, value: CuDuration)
pub fn reset(&mut self)
Trait Implementations§
Source§impl Clone for CuDurationStatistics
impl Clone for CuDurationStatistics
Source§fn clone(&self) -> CuDurationStatistics
fn clone(&self) -> CuDurationStatistics
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 moreAuto Trait Implementations§
impl Freeze for CuDurationStatistics
impl RefUnwindSafe for CuDurationStatistics
impl Send for CuDurationStatistics
impl Sync for CuDurationStatistics
impl Unpin for CuDurationStatistics
impl UnwindSafe for CuDurationStatistics
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