Skip to main content

Description

Struct Description 

Source
pub struct Description {
Show 23 fields pub nobs: f64, pub missing: f64, pub mean: f64, pub std_err: f64, pub upper_ci: f64, pub lower_ci: f64, pub std: f64, pub iqr: f64, pub iqr_normal: f64, pub mad: f64, pub mad_normal: f64, pub coef_var: f64, pub range: f64, pub max: f64, pub min: f64, pub skew: f64, pub kurtosis: f64, pub jarque_bera: f64, pub jarque_bera_pval: f64, pub mode: f64, pub mode_freq: f64, pub median: f64, pub percentiles: Vec<f64>,
}
Expand description

Summary statistics for a numeric sample (the numeric block of the reference Description). All values are computed with the same conventions as the reference: std uses ddof = 1, percentiles use linear interpolation.

Fields§

§nobs: f64

Number of observations.

§missing: f64

Number of missing (NaN) observations dropped before computation.

§mean: f64

Sample mean.

§std_err: f64

Standard error of the mean, std / sqrt(nobs).

§upper_ci: f64

Upper confidence limit mean + q * std_err.

§lower_ci: f64

Lower confidence limit mean - q * std_err.

§std: f64

Sample standard deviation (ddof = 1).

§iqr: f64

Interquartile range, q75 - q25.

§iqr_normal: f64

IQR rescaled to a normal-distribution standard deviation.

§mad: f64

Mean absolute deviation about the mean.

§mad_normal: f64

MAD rescaled to a normal-distribution standard deviation.

§coef_var: f64

Coefficient of variation, std / mean.

§range: f64

Range, max - min.

§max: f64

Maximum value.

§min: f64

Minimum value.

§skew: f64

Sample skewness (biased estimator).

§kurtosis: f64

Sample kurtosis (biased, non-excess: a normal gives 3).

§jarque_bera: f64

Jarque–Bera statistic.

§jarque_bera_pval: f64

Jarque–Bera chi-squared(2) p-value.

§mode: f64

Mode (smallest most-frequent value).

§mode_freq: f64

Relative frequency of the mode, count / nobs.

§median: f64

Median (the 50th percentile).

§percentiles: Vec<f64>

Percentile values at PERCENTILES.

Trait Implementations§

Source§

impl Clone for Description

Source§

fn clone(&self) -> Description

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Description

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.