Skip to main content

DetectConfig

Struct DetectConfig 

Source
pub struct DetectConfig {
Show 20 fields pub point_threshold: f64, pub point_min_n: usize, pub column_roles: bool, pub point_fdr_q: Option<f64>, pub dist_alpha: f64, pub psi_threshold: f64, pub psi_bins: usize, pub dist_min_n: usize, pub struct_null_rate: f64, pub mv_alpha: f64, pub mv_min_n: usize, pub mv_ridge: f64, pub ctx_period: usize, pub ctx_threshold: f64, pub ctx_min_per_phase: usize, pub coll_min_n: usize, pub coll_threshold: f64, pub cadence_column: Option<String>, pub cad_max_cv: f64, pub cad_min_n: usize,
}

Fields§

§point_threshold: f64

Modified z-score threshold for the point detector (Iglewicz–Hoaglin default is 3.5).

§point_min_n: usize

Minimum count of finite numeric values a column needs before the point detector will assess it. Below this, statistics are unreliable.

§column_roles: bool

When set, detectors consult each column’s Role and skip columns where their statistic is meaningless (e.g. the point detector skips identifier/categorical/sequence columns). Roles are always reported in the envelope; this only governs whether they affect detection.

§point_fdr_q: Option<f64>

Optional false-discovery-rate (FDR) level for the point detector. When set, the per-cell modified-z threshold is replaced by Benjamini–Hochberg control at this level, applied within each column: a cell is flagged only if its two-sided p-value survives BH, bounding the expected proportion of false flags at q. None keeps the fixed point_threshold behavior.

§dist_alpha: f64

Significance level for the KS and chi-square drift tests. A column is flagged when the test’s p-value falls below this.

§psi_threshold: f64

Population Stability Index threshold; PSI above this signals drift (0.1 ≈ moderate, 0.2 ≈ significant by convention).

§psi_bins: usize

Number of (baseline-quantile) bins used for PSI.

§dist_min_n: usize

Minimum sample size (per side) before a distributional test runs.

§struct_null_rate: f64

Null fraction above which the structural detector flags a column.

§mv_alpha: f64

Significance level for the Mahalanobis multivariate test (per row). Smaller than the per-column α because every row is tested.

§mv_min_n: usize

Minimum number of complete (no-missing) rows before the multivariate detector will estimate a covariance and run.

§mv_ridge: f64

Relative ridge added to the covariance diagonal for numerical stability (handles collinear / zero-variance columns). Scaled by the mean variance.

§ctx_period: usize

Seasonal period for the contextual detector. 0 (or 1) disables it — seasonality is never guessed, so without a declared period the detector reports honest absence.

§ctx_threshold: f64

Modified z-score threshold within a seasonal subseries.

§ctx_min_per_phase: usize

Minimum finite values a phase needs before it is assessed.

§coll_min_n: usize

Minimum length of an ordered numeric column before the collective (change-point) detector will run.

§coll_threshold: f64

Standardized mean-shift threshold for the collective detector. Set conservatively because the change point is chosen by maximization.

§cadence_column: Option<String>

Column to assess for metronomic cadence (interpreted as event times). None disables the cadence detector — which timestamps mean “time” is never guessed, so without this it reports honest absence.

§cad_max_cv: f64

Coefficient-of-variation threshold below which inter-arrival intervals are flagged as suspiciously regular (automated).

§cad_min_n: usize

Minimum number of intervals before cadence is assessed.

Implementations§

Source§

impl DetectConfig

Source

pub fn version(&self) -> String

A stable, human-legible fingerprint of the settings that affect output. Deterministic: no wall-clock, no environment.

Trait Implementations§

Source§

impl Clone for DetectConfig

Source§

fn clone(&self) -> DetectConfig

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 Debug for DetectConfig

Source§

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

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

impl Default for DetectConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for DetectConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for DetectConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,