pub struct RangeMetrics {
pub min: Point2D,
pub max: Point2D,
pub range: Decimal,
pub quartiles: (Decimal, Decimal, Decimal),
pub interquartile_range: Decimal,
}Expand description
Represents statistical and range-related metrics for a dataset.
RangeMetrics provides key statistical measures related to data ranges and distributions.
This structure is particularly useful when analyzing numerical datasets from financial curves,
scientific measurements, or computational geometry applications.
§Fields
-
min- The minimum point in the dataset, containing both x and y coordinates as the smallest values. This defines the lower boundary of the data range. -
max- The maximum point in the dataset, containing both x and y coordinates as the largest values. This defines the upper boundary of the data range. -
range- The numerical difference between the maximum and minimum values. Provides a simple measure of data dispersion or spread. -
quartiles- A tuple containing first quartile (Q1), median (Q2), and third quartile (Q3). These values divide the dataset into four equal parts, providing insight into data distribution. -
interquartile_range- The difference between the third and first quartiles (Q3 - Q1). A robust statistical measure of dispersion that is less sensitive to outliers than the full range.
§Usage
RangeMetrics is typically calculated as part of a larger statistical analysis workflow.
It provides essential information for box plots, outlier detection, and distribution analysis.
This structure is part of the curves analysis module that provides comprehensive statistical and financial analysis tools for mathematical curves.
Fields§
§min: Point2DThe minimum point in the dataset, containing the smallest x and y coordinates observed.
max: Point2DThe maximum point in the dataset, containing the largest x and y coordinates observed.
range: DecimalThe numerical difference between the maximum and minimum values, representing the total span of the data.
quartiles: (Decimal, Decimal, Decimal)A tuple of three values representing the first quartile (Q1), median (Q2), and third quartile (Q3) of the dataset.
interquartile_range: DecimalThe difference between the third and first quartiles (Q3 - Q1), providing a measure of statistical dispersion that ignores extremes.
Trait Implementations§
Source§impl Clone for RangeMetrics
impl Clone for RangeMetrics
Source§fn clone(&self) -> RangeMetrics
fn clone(&self) -> RangeMetrics
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ComposeSchema for RangeMetrics
impl ComposeSchema for RangeMetrics
impl Copy for RangeMetrics
Source§impl Debug for RangeMetrics
impl Debug for RangeMetrics
Source§impl Display for RangeMetrics
impl Display for RangeMetrics
Source§impl Serialize for RangeMetrics
impl Serialize for RangeMetrics
Auto Trait Implementations§
impl Freeze for RangeMetrics
impl RefUnwindSafe for RangeMetrics
impl Send for RangeMetrics
impl Sync for RangeMetrics
impl Unpin for RangeMetrics
impl UnsafeUnpin for RangeMetrics
impl UnwindSafe for RangeMetrics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PartialSchema for Twhere
T: ComposeSchema + ?Sized,
impl<T> PartialSchema for Twhere
T: ComposeSchema + ?Sized,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.