pub struct P99Prediction {
pub y_hat_us: f64,
pub upper_us: f64,
pub budget_us: f64,
pub exceeds_budget: bool,
pub calibration_size: usize,
pub fallback_level: u8,
pub state: GuardState,
pub interval_width_us: f64,
pub conformal: Option<ConformalPrediction>,
}Expand description
Result of a p99 prediction from the guard.
Fields§
§y_hat_us: f64Base prediction (most recent frame time or EMA estimate) in µs.
upper_us: f64Upper bound of the p99 prediction interval in µs.
budget_us: f64Frame budget in µs.
exceeds_budget: boolWhether the p99 upper bound exceeds the budget.
calibration_size: usizeCalibration sample count used.
fallback_level: u8Fallback level from the underlying conformal predictor (0..=4). Level 4 means frame-guard fixed fallback was used.
state: GuardStateCurrent guard state.
interval_width_us: f64Width of the prediction interval (upper - y_hat) in µs.
conformal: Option<ConformalPrediction>Underlying conformal prediction (if calibrated).
Implementations§
Trait Implementations§
Source§impl Clone for P99Prediction
impl Clone for P99Prediction
Source§fn clone(&self) -> P99Prediction
fn clone(&self) -> P99Prediction
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 moreAuto Trait Implementations§
impl Freeze for P99Prediction
impl RefUnwindSafe for P99Prediction
impl Send for P99Prediction
impl Sync for P99Prediction
impl Unpin for P99Prediction
impl UnsafeUnpin for P99Prediction
impl UnwindSafe for P99Prediction
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