pub struct EProcess { /* private fields */ }Expand description
Running anytime-valid evidence against one null hypothesis, in log space. Multiplicative absorption of conditionally-valid e-values; Ville’s inequality converts the running product into a sequential test that survives optional stopping. Serializable so evidence is resumable across corpus shards (#973): persist, reload, keep absorbing.
Implementations§
Source§impl EProcess
impl EProcess
pub fn new() -> Self
Sourcepub fn absorb(&mut self, e_value: f64) -> Result<(), String>
pub fn absorb(&mut self, e_value: f64) -> Result<(), String>
Absorb one conditionally-valid e-value (NOT in log space; must be
≥ 0; E[e | past] ≤ 1 under H0 is the caller’s contract — e.g. a
universal-inference batch ratio or a fixed-prior Bayes factor).
Sourcepub fn absorb_log(&mut self, log_e_value: f64) -> Result<(), String>
pub fn absorb_log(&mut self, log_e_value: f64) -> Result<(), String>
Absorb a batch e-value supplied in log space (the only numerically honest interface for long streams).
pub fn log_evidence(&self) -> f64
pub fn steps(&self) -> usize
Sourcepub fn rejects_at(&self, alpha: f64) -> bool
pub fn rejects_at(&self, alpha: f64) -> bool
Anytime-valid rejection at level α: by Ville,
P_{H0}(sup_t E_t ≥ 1/α) ≤ α, so crossing 1/α at ANY time —
including data-dependent stopping times — proves the claim with
type-I error ≤ α. Uses the running supremum: once crossed, always
rejected.
Sourcepub fn current_e_value_log(&self) -> f64
pub fn current_e_value_log(&self) -> f64
The e-value to hand to e_benjamini_hochberg for the
dictionary-level FDR certificate (current evidence, not the sup —
e-BH’s guarantee is stated for e-values at the chosen stopping
time).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EProcess
impl<'de> Deserialize<'de> for EProcess
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for EProcess
impl RefUnwindSafe for EProcess
impl Send for EProcess
impl Sync for EProcess
impl Unpin for EProcess
impl UnsafeUnpin for EProcess
impl UnwindSafe for EProcess
Blanket Implementations§
impl<T> Allocation 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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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,
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.