Struct windowed_stats::experimental::series::statistic::ArithmeticMean
source · pub struct ArithmeticMean<T> { /* private fields */ }
Expand description
Arithmetic mean statistic.
The arithmetic mean sums samples within their domain and computes the mean as a real number
represented using floating-point. For floating-point samples, NaN
s are discarded and the sum
saturates to infinity without error.
This statistic is sensitive to overflow in the count of samples.
Implementations§
source§impl<T> ArithmeticMean<T>
impl<T> ArithmeticMean<T>
Trait Implementations§
source§impl<T: Clone> Clone for ArithmeticMean<T>
impl<T: Clone> Clone for ArithmeticMean<T>
source§fn clone(&self) -> ArithmeticMean<T>
fn clone(&self) -> ArithmeticMean<T>
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<T: Debug> Debug for ArithmeticMean<T>
impl<T: Debug> Debug for ArithmeticMean<T>
source§impl<T> Default for ArithmeticMean<T>where
T: Zero,
impl<T> Default for ArithmeticMean<T>where
T: Zero,
source§impl<T> Fill<T> for ArithmeticMean<T>
impl<T> Fill<T> for ArithmeticMean<T>
source§impl Statistic for ArithmeticMean<f32>
impl Statistic for ArithmeticMean<f32>
§type Aggregation = f32
type Aggregation = f32
The type of the statistical aggregation.
source§fn aggregation(&self) -> Option<Self::Aggregation>
fn aggregation(&self) -> Option<Self::Aggregation>
Gets the statistical aggregation. Read more
Auto Trait Implementations§
impl<T> Freeze for ArithmeticMean<T>where
T: Freeze,
impl<T> RefUnwindSafe for ArithmeticMean<T>where
T: RefUnwindSafe,
impl<T> Send for ArithmeticMean<T>where
T: Send,
impl<T> Sync for ArithmeticMean<T>where
T: Sync,
impl<T> Unpin for ArithmeticMean<T>where
T: Unpin,
impl<T> UnwindSafe for ArithmeticMean<T>where
T: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Encode<Ambiguous1> for T
impl<T> Encode<Ambiguous1> for T
source§impl<T> Encode<Ambiguous2> for T
impl<T> Encode<Ambiguous2> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<F> StatisticExt for Fwhere
F: Statistic,
impl<F> StatisticExt for Fwhere
F: Statistic,
source§fn get_aggregation_and_reset(&mut self) -> Option<Self::Aggregation>
fn get_aggregation_and_reset(&mut self) -> Option<Self::Aggregation>
Gets the statistical aggregation and resets the statistic.