feat: initial commit

This commit is contained in:
swaits committed 2024-08-27 12:48:10 -06:00
commit 749184191d
14 files changed
+3036

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
/// Represents the quality of fit for an estimation distribution.
#[derive(Debug, Clone, PartialEq)]
pub struct EstimationFitQuality {
/// Mean Absolute Percentage Error (MAPE)
pub mean_absolute_percentage_error: f64,
/// Root Mean Square Error (RMSE)
pub root_mean_square_error: f64,
/// Mean of the fitted distribution
pub distribution_mean: f64,
/// Median of the fitted distribution
pub distribution_median: f64,
/// Mode of the fitted distribution
pub distribution_mode: f64,
/// Proportion of data within 50% confidence interval (interquartile range)
pub within_50_percent: f64,
/// Proportion of data within 68% confidence interval (approx. 1 std dev)
pub within_68_percent: f64,
/// Proportion of data within 95% confidence interval (approx. 2 std dev)
pub within_95_percent: f64,
/// The number of data points used in the calculation
pub sample_size: usize,
}