#[non_exhaustive]pub struct ItpResult {
pub adjusted_pvalues: Vec<f64>,
pub raw_pvalues: Vec<f64>,
pub basis_type: ProjectionBasisType,
pub n_basis: usize,
pub n_perm: usize,
}Expand description
Result of an Interval Testing Procedure (ITP) family test.
Provides per-basis-component raw and adjusted p-values. The adjusted
p-values implement the interval-wise closure adjustment (Pini & Vantini,
Biometrics 2016): adjusted_pvalues[k] is the maximum over all contiguous
intervals [a, b] containing k of the joint permutation p-value for that
interval. A small adjusted p-value at component k indicates that the
domain sub-interval represented by basis function k contributes to the
rejection of H₀.
Note on n_basis: For B-spline bases, the actual number of basis
functions used may differ from the requested nbasis due to knot clamping.
Always read n_basis from ItpResult rather than the argument passed to
the entry point.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.adjusted_pvalues: Vec<f64>Adjusted (interval-wise closed) p-values, one per basis component.
raw_pvalues: Vec<f64>Raw (point-wise) permutation p-values, one per basis component.
Uses the (n_ge + 1) / (n_perm + 1) correction (avoids zero p-values;
deliberate divergence from the R fdatest convention of n_ge / B).
basis_type: ProjectionBasisTypeBasis type used for projection.
n_basis: usizeNumber of basis functions actually used (may differ from requested for B-splines due to knot clamping).
n_perm: usizeNumber of permutations used.
Trait Implementations§
impl StructuralPartialEq for ItpResult
Auto Trait Implementations§
impl Freeze for ItpResult
impl RefUnwindSafe for ItpResult
impl Send for ItpResult
impl Sync for ItpResult
impl Unpin for ItpResult
impl UnsafeUnpin for ItpResult
impl UnwindSafe for ItpResult
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.