pub struct FreemanTukey {
pub yates: bool,
}Expand description
Freeman-Tukey power-divergence test for discrete data (λ = −1/2).
When yates is set, Yates’ continuity correction is applied on 2×2
(sub-)tables. Cramér’s V is reported as the effect size.
Fields§
§yates: boolWhether to apply Yates’ continuity correction on 2×2 (sub-)tables.
Implementations§
Source§impl FreemanTukey
impl FreemanTukey
Trait Implementations§
Source§impl CITest for FreemanTukey
impl CITest for FreemanTukey
Source§fn test_impl(
&self,
data: &Dataset,
x: usize,
y: usize,
z: &[usize],
) -> Result<CIResult, CIError>
fn test_impl( &self, data: &Dataset, x: usize, y: usize, z: &[usize], ) -> Result<CIResult, CIError>
Test-specific computation for
x ⊥ y | z. Implementations may assume
the query has already been validated by CITest::test; call sites
should use CITest::test, not this method. Read moreSource§fn validate(&self, _data: &Dataset) -> Result<(), CIError>
fn validate(&self, _data: &Dataset) -> Result<(), CIError>
Check the test’s own configuration against
data (e.g. kernel
parameters, column names). The default accepts everything. Bindings call
this at construction so a bad configuration fails early; the provided
CITest::test also runs it on every call. Read moreSource§impl Clone for FreemanTukey
impl Clone for FreemanTukey
impl Copy for FreemanTukey
Source§impl Debug for FreemanTukey
impl Debug for FreemanTukey
Source§impl Default for FreemanTukey
impl Default for FreemanTukey
impl Eq for FreemanTukey
Source§impl PartialEq for FreemanTukey
impl PartialEq for FreemanTukey
impl StructuralPartialEq for FreemanTukey
Auto Trait Implementations§
impl Freeze for FreemanTukey
impl RefUnwindSafe for FreemanTukey
impl Send for FreemanTukey
impl Sync for FreemanTukey
impl Unpin for FreemanTukey
impl UnsafeUnpin for FreemanTukey
impl UnwindSafe for FreemanTukey
Blanket Implementations§
impl<T> Boilerplate for T
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