pub struct PearsonCorrelation;Expand description
Pearson correlation test. With a non-empty conditioning set it computes the
partial correlation by regressing X and Y on [1, Z] (intercept included)
and correlating the residuals.
Implementations§
Trait Implementations§
Source§impl CITest for PearsonCorrelation
impl CITest for PearsonCorrelation
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 PearsonCorrelation
impl Clone for PearsonCorrelation
impl Copy for PearsonCorrelation
Source§impl Debug for PearsonCorrelation
impl Debug for PearsonCorrelation
Source§impl Default for PearsonCorrelation
impl Default for PearsonCorrelation
impl Eq for PearsonCorrelation
Source§impl PartialEq for PearsonCorrelation
impl PartialEq for PearsonCorrelation
impl StructuralPartialEq for PearsonCorrelation
Auto Trait Implementations§
impl Freeze for PearsonCorrelation
impl RefUnwindSafe for PearsonCorrelation
impl Send for PearsonCorrelation
impl Sync for PearsonCorrelation
impl Unpin for PearsonCorrelation
impl UnsafeUnpin for PearsonCorrelation
impl UnwindSafe for PearsonCorrelation
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