pub struct FisherZ;Expand description
Fisher-z test on the (partial) correlation: z = √(n − |Z| − 3) · atanh(ρ)
is approximately standard normal under X ⊥ Y | Z. The de-facto standard
continuous CI test in causal discovery (pcalg’s gaussCItest,
causal-learn’s fisherz, pgmpy’s FisherZ).
Implementations§
Trait Implementations§
Source§impl CITest for FisherZ
impl CITest for FisherZ
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 moreimpl Copy for FisherZ
impl Eq for FisherZ
impl StructuralPartialEq for FisherZ
Auto Trait Implementations§
impl Freeze for FisherZ
impl RefUnwindSafe for FisherZ
impl Send for FisherZ
impl Sync for FisherZ
impl Unpin for FisherZ
impl UnsafeUnpin for FisherZ
impl UnwindSafe for FisherZ
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