pub enum Alternative {
TwoSided,
Less,
Greater,
}Expand description
The sidedness of a hypothesis test, mirroring scipy’s alternative argument.
Selects which tail (or both) contributes to the reported p-value. The exact
mapping from a statistic to a p-value is per-test, but the convention is
uniform: Self::TwoSided doubles the smaller tail (or integrates both),
Self::Less takes the lower tail, Self::Greater the upper tail.
Variants§
TwoSided
The effect may lie in either direction; both tails contribute.
Less
The alternative hypothesis is that the effect is below the null value.
Greater
The alternative hypothesis is that the effect is above the null value.
Trait Implementations§
Source§impl Clone for Alternative
impl Clone for Alternative
Source§fn clone(&self) -> Alternative
fn clone(&self) -> Alternative
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Alternative
Source§impl Debug for Alternative
impl Debug for Alternative
impl Eq for Alternative
Source§impl PartialEq for Alternative
impl PartialEq for Alternative
Source§fn eq(&self, other: &Alternative) -> bool
fn eq(&self, other: &Alternative) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Alternative
Auto Trait Implementations§
impl Freeze for Alternative
impl RefUnwindSafe for Alternative
impl Send for Alternative
impl Sync for Alternative
impl Unpin for Alternative
impl UnsafeUnpin for Alternative
impl UnwindSafe for Alternative
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