pub struct StatisticalTest {
pub test_statistic: f64,
pub p_value: f64,
pub effect_size: f64,
pub degrees_of_freedom: usize,
pub is_significant: bool,
pub significance_level: SignificanceLevel,
}Expand description
Statistical test result for comparing two benchmark results
Fields§
§test_statistic: f64Test statistic value (t-statistic for t-test)
p_value: f64P-value of the test
effect_size: f64Effect size (Cohen’s d for t-test)
degrees_of_freedom: usizeDegrees of freedom
is_significant: boolWhether the test is statistically significant
significance_level: SignificanceLevelSignificance level used for the test
Implementations§
Source§impl StatisticalTest
impl StatisticalTest
Sourcepub fn effect_size_interpretation(&self) -> &'static str
pub fn effect_size_interpretation(&self) -> &'static str
Interpret the effect size according to Cohen’s conventions
Sourcepub fn conclusion(&self) -> String
pub fn conclusion(&self) -> String
Get statistical conclusion in human-readable form
Trait Implementations§
Source§impl Clone for StatisticalTest
impl Clone for StatisticalTest
Source§fn clone(&self) -> StatisticalTest
fn clone(&self) -> StatisticalTest
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for StatisticalTest
impl RefUnwindSafe for StatisticalTest
impl Send for StatisticalTest
impl Sync for StatisticalTest
impl Unpin for StatisticalTest
impl UnwindSafe for StatisticalTest
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