pub struct Kci {
pub kernel: KernelChoice,
pub bandwidth: Bandwidth,
pub epsilon: f64,
}Expand description
KCI conditional-independence test (X ⊥ Y | Z).
Fields§
§kernel: KernelChoiceKernel selection.
bandwidth: BandwidthBandwidth rule for default RBF kernels.
epsilon: f64Ridge regularization ε of the Z-residualizer; finite and > 0.
Implementations§
Trait Implementations§
Source§impl CITest for Kci
impl CITest for Kci
Source§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§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 moreimpl StructuralPartialEq for Kci
Auto Trait Implementations§
impl Freeze for Kci
impl RefUnwindSafe for Kci
impl Send for Kci
impl Sync for Kci
impl Unpin for Kci
impl UnsafeUnpin for Kci
impl UnwindSafe for Kci
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