pub struct BudgetConfig {
pub alpha: f64,
pub mu_0: f64,
pub sigma_sq: f64,
pub cusum_k: f64,
pub cusum_h: f64,
pub lambda: f64,
pub window_size: usize,
}Expand description
Configuration for the allocation budget monitor.
Fields§
§alpha: f64Significance level α for e-process. Default: 0.05.
mu_0: f64Reference mean μ₀ (expected allocations per frame under H₀). This should be calibrated from a stable baseline.
sigma_sq: f64Assumed variance σ² under H₀. Default: computed from baseline.
cusum_k: f64CUSUM allowance parameter k. Default: δ/2 where δ = target_shift.
cusum_h: f64CUSUM threshold h. Default: 5.0.
lambda: f64Fixed betting fraction λ for e-process. Default: 0.1.
window_size: usizeWindow size for running statistics. Default: 100.
Implementations§
Source§impl BudgetConfig
impl BudgetConfig
Trait Implementations§
Source§impl Clone for BudgetConfig
impl Clone for BudgetConfig
Source§fn clone(&self) -> BudgetConfig
fn clone(&self) -> BudgetConfig
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 BudgetConfig
impl Debug for BudgetConfig
Auto Trait Implementations§
impl Freeze for BudgetConfig
impl RefUnwindSafe for BudgetConfig
impl Send for BudgetConfig
impl Sync for BudgetConfig
impl Unpin for BudgetConfig
impl UnsafeUnpin for BudgetConfig
impl UnwindSafe for BudgetConfig
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