pub struct PermutationTest {
pub statistic: Statistic,
pub exchange: Exchange,
pub tail: Tail,
pub n_permutations: usize,
pub seed: u64,
pub nbs: Option<(Vec<Option<Edge>>, f64)>,
}Fields§
§statistic: Statistic§exchange: Exchange§tail: Tail§n_permutations: usize§seed: u64§nbs: Option<(Vec<Option<Edge>>, f64)>Network-based statistic over edge features, at this primary threshold of the tailed t.
Implementations§
Source§impl PermutationTest
impl PermutationTest
Sourcepub fn run(&self, y: ArrayView2<'_, f64>) -> Result<TestResult, MethodError>
pub fn run(&self, y: ArrayView2<'_, f64>) -> Result<TestResult, MethodError>
Runs the test on y (observations × features). Results do not depend on the number of
threads: each rearrangement draws from its own random stream.
Trait Implementations§
Source§impl Clone for PermutationTest
impl Clone for PermutationTest
Source§fn clone(&self) -> PermutationTest
fn clone(&self) -> PermutationTest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PermutationTest
impl RefUnwindSafe for PermutationTest
impl Send for PermutationTest
impl Sync for PermutationTest
impl Unpin for PermutationTest
impl UnwindSafe for PermutationTest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more