pub struct PearsonEquivalence {
pub delta_threshold: f64,
}Expand description
Two One-Sided Tests (TOST) equivalence test on the partial correlation,
using Fisher’s z-transform. A low p-value (below the significance level)
declares independence, so the rule is IndependenceRule::PValueLt.
Fields§
§delta_threshold: f64Equivalence margin on the correlation scale (the “negligible” effect).
Implementations§
Trait Implementations§
Source§impl CITest for PearsonEquivalence
impl CITest for PearsonEquivalence
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 PearsonEquivalence
impl Clone for PearsonEquivalence
impl Copy for PearsonEquivalence
Source§impl Debug for PearsonEquivalence
impl Debug for PearsonEquivalence
Source§impl PartialEq for PearsonEquivalence
impl PartialEq for PearsonEquivalence
impl StructuralPartialEq for PearsonEquivalence
Auto Trait Implementations§
impl Freeze for PearsonEquivalence
impl RefUnwindSafe for PearsonEquivalence
impl Send for PearsonEquivalence
impl Sync for PearsonEquivalence
impl Unpin for PearsonEquivalence
impl UnsafeUnpin for PearsonEquivalence
impl UnwindSafe for PearsonEquivalence
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