pub struct BocpdEvidence {Show 15 fields
pub p_burst: f64,
pub log_bayes_factor: f64,
pub observation_ms: f64,
pub regime: BocpdRegime,
pub likelihood_steady: f64,
pub likelihood_burst: f64,
pub expected_run_length: f64,
pub run_length_variance: f64,
pub run_length_mode: usize,
pub run_length_p95: usize,
pub run_length_tail_mass: f64,
pub recommended_delay_ms: Option<u64>,
pub hard_deadline_forced: Option<bool>,
pub observation_count: u64,
pub timestamp: Instant,
}Expand description
Evidence from a BOCPD update step.
Provides explainability for regime detection decisions.
Fields§
§p_burst: f64Posterior probability of burst regime.
log_bayes_factor: f64Log10 Bayes factor (positive favors burst).
observation_ms: f64Current observation (inter-arrival time in ms).
regime: BocpdRegimeClassified regime based on thresholds.
likelihood_steady: f64Likelihood under steady model.
likelihood_burst: f64Likelihood under burst model.
expected_run_length: f64Expected run-length (mean of posterior).
run_length_variance: f64Run-length posterior variance.
run_length_mode: usizeRun-length posterior mode (argmax).
run_length_p95: usize95th percentile of run-length posterior.
run_length_tail_mass: f64Tail mass at the truncation bucket (r = K).
recommended_delay_ms: Option<u64>Recommended delay based on current regime (ms), if provided.
hard_deadline_forced: Option<bool>Whether a hard deadline forced the decision, if provided.
observation_count: u64Number of observations processed.
timestamp: InstantTimestamp of this evidence.
Implementations§
Trait Implementations§
Source§impl Clone for BocpdEvidence
impl Clone for BocpdEvidence
Source§fn clone(&self) -> BocpdEvidence
fn clone(&self) -> BocpdEvidence
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 BocpdEvidence
impl Debug for BocpdEvidence
Auto Trait Implementations§
impl Freeze for BocpdEvidence
impl RefUnwindSafe for BocpdEvidence
impl Send for BocpdEvidence
impl Sync for BocpdEvidence
impl Unpin for BocpdEvidence
impl UnsafeUnpin for BocpdEvidence
impl UnwindSafe for BocpdEvidence
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