pub struct StrategyEvidence {Show 14 fields
pub strategy: DiffStrategy,
pub cost_full: f64,
pub cost_dirty: f64,
pub cost_redraw: f64,
pub posterior_mean: f64,
pub posterior_variance: f64,
pub alpha: f64,
pub beta: f64,
pub dirty_rows: usize,
pub total_rows: usize,
pub total_cells: usize,
pub guard_reason: &'static str,
pub hysteresis_applied: bool,
pub hysteresis_ratio: f64,
}Expand description
Evidence supporting a strategy decision.
Provides explainability for the selection, showing expected costs and the posterior state that led to the decision.
Fields§
§strategy: DiffStrategyThe selected strategy.
cost_full: f64Expected cost of Full strategy.
cost_dirty: f64Expected cost of DirtyRows strategy.
cost_redraw: f64Expected cost of FullRedraw strategy.
posterior_mean: f64Posterior mean of change rate p.
posterior_variance: f64Posterior variance of change rate p.
alpha: f64Current posterior α.
beta: f64Current posterior β.
dirty_rows: usizeNumber of dirty rows observed.
total_rows: usizeTotal rows (height).
total_cells: usizeTotal cells (width × height).
guard_reason: &'static strGuard reason, if any.
hysteresis_applied: boolWhether hysteresis prevented a switch.
hysteresis_ratio: f64Hysteresis ratio used for the decision.
Implementations§
Trait Implementations§
Source§impl Clone for StrategyEvidence
impl Clone for StrategyEvidence
Source§fn clone(&self) -> StrategyEvidence
fn clone(&self) -> StrategyEvidence
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 StrategyEvidence
impl Debug for StrategyEvidence
Auto Trait Implementations§
impl Freeze for StrategyEvidence
impl RefUnwindSafe for StrategyEvidence
impl Send for StrategyEvidence
impl Sync for StrategyEvidence
impl Unpin for StrategyEvidence
impl UnsafeUnpin for StrategyEvidence
impl UnwindSafe for StrategyEvidence
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