Skip to main content

Threshold

Enum Threshold 

Source
pub enum Threshold {
    BicLike {
        c: f64,
    },
    Lil {
        c: f64,
    },
    MaxOfK {
        c: f64,
    },
    Fixed(f64),
    Gumbel {
        alpha: f64,
    },
}
Expand description

Threshold rule on the studentized scale.

Variants§

§

BicLike

sqrt(c · log n). With c = 1 this equals the per-increment threshold implicit in BIC (adjacent-order BIC difference is negative iff t_k² > log n to first order) — this is not the same as BIC’s global argmin. Requires c > 0.

Fields

§

Lil

sqrt(2 c · log log n): Hannan–Quinn / law-of-the-iterated-logarithm rate. Requires c > 0; consistency arguments need c > 1.

Fields

§

MaxOfK

sqrt(2 · log p_n) + c: Bonferroni/extreme-value correction for the number of lags inspected — the natural companion of Jirak’s (2012) Gumbel limit. Requires c ≥ 0.

Fields

§

Fixed(f64)

Fixed value on the studentized scale, e.g. 1.96 reproduces the Box–Jenkins band (not consistent; for benchmarking). Requires a finite value ≥ 0.

§

Gumbel

Level-calibrated threshold: the 1−alpha quantile of the Gumbel limit of max_{k ≤ p_n} |Z_k|, Z_k approximately standard normal, i.e. b_p + a_p · (−log(−log(1−alpha))) with a_p = 1/sqrt(2 log p) and b_p = sqrt(2 log p) − (log log p + log π) / (2 sqrt(2 log p)) (absolute values ⇒ 2p tails). With a fixed alpha this controls the family-wise overestimation probability at ≈ alpha (not consistent); with alpha = alpha_n → 0 slowly it is the Jirak-type consistent rule. Jirak (2012) gives the exact normalising constants for Yule–Walker estimates (see Statistic::JirakBand); this generic form uses the universal Gumbel constants. Requires 0 < alpha < 1.

Fields

§alpha: f64

Implementations§

Source§

impl Threshold

Source

pub fn validate(self) -> Result<()>

Reject parameters that would make the rule meaningless (negative or NaN constants).

Source

pub fn value(self, n: usize, p_n: usize) -> f64

Numerical threshold for sample size n and memory p_n.

Source

pub fn name(self) -> String

Trait Implementations§

Source§

impl Clone for Threshold

Source§

fn clone(&self) -> Threshold

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Threshold

Source§

impl Debug for Threshold

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Threshold

Source§

fn default() -> Self

BicLike { c: 1.5 } — matched BIC in the 2026-10-23 simulations. Chosen empirically; not derived from a theorem.

Source§

impl PartialEq for Threshold

Source§

fn eq(&self, other: &Threshold) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Threshold

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.