pub struct StatisticalAnalysis {
pub benchmark_result: BenchmarkResult,
pub mean_confidence_interval: ConfidenceInterval,
pub median_confidence_interval: ConfidenceInterval,
pub standard_error: Duration,
pub coefficient_of_variation: f64,
pub normality_test: NormalityTest,
pub outlier_count: usize,
pub statistical_power: f64,
}Expand description
Comprehensive statistical analysis of benchmark results
Fields§
§benchmark_result: BenchmarkResultOriginal benchmark result being analyzed
mean_confidence_interval: ConfidenceIntervalConfidence interval for the mean
median_confidence_interval: ConfidenceIntervalMedian confidence interval (bootstrap-based)
standard_error: DurationStandard error of the mean
coefficient_of_variation: f64Coefficient of variation (relative standard deviation)
normality_test: NormalityTestNormality test results
outlier_count: usizeNumber of outliers detected
statistical_power: f64Statistical power (for detecting meaningful differences)
Implementations§
Source§impl StatisticalAnalysis
impl StatisticalAnalysis
Sourcepub fn analyze(
result: &BenchmarkResult,
significance_level: SignificanceLevel,
) -> Result<Self, Box<dyn Error>>
pub fn analyze( result: &BenchmarkResult, significance_level: SignificanceLevel, ) -> Result<Self, Box<dyn Error>>
Perform comprehensive statistical analysis on benchmark result
Sourcepub fn compare(
result_a: &BenchmarkResult,
result_b: &BenchmarkResult,
significance_level: SignificanceLevel,
) -> Result<StatisticalTest, Box<dyn Error>>
pub fn compare( result_a: &BenchmarkResult, result_b: &BenchmarkResult, significance_level: SignificanceLevel, ) -> Result<StatisticalTest, Box<dyn Error>>
Perform statistical comparison between two benchmark results
Sourcepub fn is_reliable(&self) -> bool
pub fn is_reliable(&self) -> bool
Check if benchmark results are reliable based on statistical criteria
Sourcepub fn generate_report(&self) -> String
pub fn generate_report(&self) -> String
Generate comprehensive statistical report
Sourcepub fn detect_outliers(times: &[Duration]) -> usize
pub fn detect_outliers(times: &[Duration]) -> usize
Detect outliers in timing data using IQR method
Trait Implementations§
Source§impl Clone for StatisticalAnalysis
impl Clone for StatisticalAnalysis
Auto Trait Implementations§
impl Freeze for StatisticalAnalysis
impl RefUnwindSafe for StatisticalAnalysis
impl Send for StatisticalAnalysis
impl Sync for StatisticalAnalysis
impl Unpin for StatisticalAnalysis
impl UnsafeUnpin for StatisticalAnalysis
impl UnwindSafe for StatisticalAnalysis
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