pub struct Quartiles {
pub q1: f64,
pub median: f64,
pub q3: f64,
pub iqr: f64,
pub lower_whisker: f64,
pub upper_whisker: f64,
pub min: f64,
pub max: f64,
pub outliers: Vec<f64>,
}Expand description
Five-number summary plus Tukey fences and the outliers of a sample.
Fields§
§q1: f64First quartile (25th percentile).
median: f64Median (50th percentile).
q3: f64Third quartile (75th percentile).
iqr: f64Interquartile range, q3 - q1.
lower_whisker: f64Lower whisker end: the smallest sample value >= q1 - 1.5*IQR.
upper_whisker: f64Upper whisker end: the largest sample value <= q3 + 1.5*IQR.
min: f64Sample minimum (finite values only).
max: f64Sample maximum (finite values only).
outliers: Vec<f64>Values falling outside the 1.5*IQR Tukey fences, in ascending order.
Implementations§
Source§impl Quartiles
impl Quartiles
Sourcepub fn lower_fence(&self) -> f64
pub fn lower_fence(&self) -> f64
The lower Tukey fence, q1 - 1.5 * IQR. Points below it are outliers.
Sourcepub fn upper_fence(&self) -> f64
pub fn upper_fence(&self) -> f64
The upper Tukey fence, q3 + 1.5 * IQR. Points above it are outliers.
Trait Implementations§
impl StructuralPartialEq for Quartiles
Auto Trait Implementations§
impl Freeze for Quartiles
impl RefUnwindSafe for Quartiles
impl Send for Quartiles
impl Sync for Quartiles
impl Unpin for Quartiles
impl UnsafeUnpin for Quartiles
impl UnwindSafe for Quartiles
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