pub struct TestResult {
pub passed: bool,
pub statistic: f64,
pub p_value: f64,
pub description: String,
}Expand description
Result of a single statistical test.
Fields§
§passed: booltrue if the test passed at the chosen significance level (default α = 0.01).
statistic: f64The raw test statistic (e.g. chi-squared value, z-score).
p_value: f64The p-value. Values < 0.01 indicate non-randomness at 99% confidence.
description: StringHuman-readable description including test name and outcome.
Trait Implementations§
Source§impl Clone for TestResult
impl Clone for TestResult
Source§fn clone(&self) -> TestResult
fn clone(&self) -> TestResult
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 TestResult
impl RefUnwindSafe for TestResult
impl Send for TestResult
impl Sync for TestResult
impl Unpin for TestResult
impl UnsafeUnpin for TestResult
impl UnwindSafe for TestResult
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