pub struct NumericStats {
pub min: f64,
pub max: f64,
pub mean: f64,
pub std_dev: f64,
pub count: u64,
}Expand description
Descriptive statistics for a numeric property across a set of items.
Fields§
§min: f64Minimum observed value.
max: f64Maximum observed value.
mean: f64Arithmetic mean.
std_dev: f64Population standard deviation.
count: u64Number of observations.
Implementations§
Source§impl NumericStats
impl NumericStats
Sourcepub fn from_values(values: &[f64]) -> Option<Self>
pub fn from_values(values: &[f64]) -> Option<Self>
Computes statistics from a slice of values.
Returns None when the slice is empty.
Trait Implementations§
Source§impl Clone for NumericStats
impl Clone for NumericStats
Source§fn clone(&self) -> NumericStats
fn clone(&self) -> NumericStats
Returns a duplicate 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 NumericStats
impl Debug for NumericStats
Source§impl<'de> Deserialize<'de> for NumericStats
impl<'de> Deserialize<'de> for NumericStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NumericStats
impl PartialEq for NumericStats
Source§impl Serialize for NumericStats
impl Serialize for NumericStats
impl StructuralPartialEq for NumericStats
Auto Trait Implementations§
impl Freeze for NumericStats
impl RefUnwindSafe for NumericStats
impl Send for NumericStats
impl Sync for NumericStats
impl Unpin for NumericStats
impl UnsafeUnpin for NumericStats
impl UnwindSafe for NumericStats
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