Struct distimate::EstimationFitQuality
source · pub struct EstimationFitQuality {
pub mean_absolute_percentage_error: f64,
pub root_mean_square_error: f64,
pub distribution_mean: f64,
pub distribution_median: f64,
pub distribution_mode: f64,
pub within_50_percent: f64,
pub within_68_percent: f64,
pub within_95_percent: f64,
pub sample_size: usize,
}Expand description
Represents the quality of fit for an estimation distribution.
Fields§
§mean_absolute_percentage_error: f64Mean Absolute Percentage Error (MAPE)
root_mean_square_error: f64Root Mean Square Error (RMSE)
distribution_mean: f64Mean of the fitted distribution
distribution_median: f64Median of the fitted distribution
distribution_mode: f64Mode of the fitted distribution
within_50_percent: f64Proportion of data within 50% confidence interval (interquartile range)
within_68_percent: f64Proportion of data within 68% confidence interval (approx. 1 std dev)
within_95_percent: f64Proportion of data within 95% confidence interval (approx. 2 std dev)
sample_size: usizeThe number of data points used in the calculation
Trait Implementations§
source§impl Clone for EstimationFitQuality
impl Clone for EstimationFitQuality
source§fn clone(&self) -> EstimationFitQuality
fn clone(&self) -> EstimationFitQuality
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 Debug for EstimationFitQuality
impl Debug for EstimationFitQuality
source§impl PartialEq for EstimationFitQuality
impl PartialEq for EstimationFitQuality
impl StructuralPartialEq for EstimationFitQuality
Auto Trait Implementations§
impl Freeze for EstimationFitQuality
impl RefUnwindSafe for EstimationFitQuality
impl Send for EstimationFitQuality
impl Sync for EstimationFitQuality
impl Unpin for EstimationFitQuality
impl UnwindSafe for EstimationFitQuality
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.