pub struct TriageSessionConfig {
pub p0: [f64; 4],
pub alts: Vec<[f64; 4]>,
pub cusum_alpha: f64,
pub min_n: u64,
pub threshold: f64,
pub tol: f64,
pub bin_cfg: ContextBinConfig,
pub wf_cfg: WorstFirstConfig,
pub seed: u64,
}Expand description
Configuration for a TriageSession.
Fields§
§p0: [f64; 4]CUSUM null distribution p0 over the 4-category outcome space.
Default: [0.85, 0.05, 0.05, 0.05] (85% clean, 5% each degraded category).
alts: Vec<[f64; 4]>CUSUM alternative distributions. Each entry is an alternative hypothesis (e.g. “hard-junk spike”, “total-failure spike”) as a 4-category distribution.
Default: two alternatives — hard-junk-heavy and fail-heavy.
cusum_alpha: f64Dirichlet smoothing for CUSUM (added to p0 and each alt before log-ratio).
min_n: u64Minimum observations before a detector can alarm.
threshold: f64CUSUM alarm threshold (lower = more sensitive).
tol: f64Simplex tolerance for validation.
bin_cfg: ContextBinConfigContext-bin configuration for the coverage tracker.
wf_cfg: WorstFirstConfigWorst-first scoring weights for cell prioritisation.
seed: u64Seed for deterministic tie-breaking in top_cells.
Trait Implementations§
Source§impl Clone for TriageSessionConfig
impl Clone for TriageSessionConfig
Source§fn clone(&self) -> TriageSessionConfig
fn clone(&self) -> TriageSessionConfig
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 moreSource§impl Debug for TriageSessionConfig
impl Debug for TriageSessionConfig
Source§impl Default for TriageSessionConfig
impl Default for TriageSessionConfig
Source§impl<'de> Deserialize<'de> for TriageSessionConfig
impl<'de> Deserialize<'de> for TriageSessionConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TriageSessionConfig
impl RefUnwindSafe for TriageSessionConfig
impl Send for TriageSessionConfig
impl Sync for TriageSessionConfig
impl Unpin for TriageSessionConfig
impl UnsafeUnpin for TriageSessionConfig
impl UnwindSafe for TriageSessionConfig
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