pub struct TrendTestResult {
pub statistic: f64,
pub p_value: f64,
pub direction: TrendDirection,
pub events_used: usize,
pub degrees_of_freedom: Option<f64>,
}Expand description
A trend test’s outcome.
Fields§
§statistic: f64The test statistic (U for Laplace, χ² for MIL-HDBK-189).
p_value: f64Two-sided p-value against a constant rate. The one-sided p-value in
the observed direction is half of it.
direction: TrendDirectionWhich way the observed rate moves.
events_used: usizeEvents the statistic used: n, or n − 1 failure-truncated.
degrees_of_freedom: Option<f64>χ² degrees of freedom (2 · events_used); None for the Laplace test.
Trait Implementations§
Source§impl Clone for TrendTestResult
impl Clone for TrendTestResult
impl Copy for TrendTestResult
Source§impl Debug for TrendTestResult
impl Debug for TrendTestResult
Source§impl PartialEq for TrendTestResult
impl PartialEq for TrendTestResult
impl StructuralPartialEq for TrendTestResult
Auto Trait Implementations§
impl Freeze for TrendTestResult
impl RefUnwindSafe for TrendTestResult
impl Send for TrendTestResult
impl Sync for TrendTestResult
impl Unpin for TrendTestResult
impl UnsafeUnpin for TrendTestResult
impl UnwindSafe for TrendTestResult
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