pub struct EffectEstimate {
pub shift_ns: f64,
pub tail_ns: f64,
pub credible_interval_ns: (f64, f64),
pub pattern: EffectPattern,
}Expand description
Simplified effect estimate for public API.
This is the format used by the adaptive architecture to report effect sizes to callers.
Fields§
§shift_ns: f64Uniform shift in nanoseconds (positive = baseline slower).
All quantiles shift by approximately this amount. Example: A branch that adds constant overhead.
tail_ns: f64Tail effect in nanoseconds (positive = baseline has heavier upper tail).
Upper quantiles shift more than lower quantiles. Example: Cache misses that occur probabilistically.
credible_interval_ns: (f64, f64)95% credible interval for total effect magnitude in nanoseconds.
Computed from ||β||₂ samples from the posterior distribution. Note: May not contain point estimate when β ≈ 0.
pattern: EffectPatternDominant effect pattern (spec §3.4.6).
Trait Implementations§
Source§impl Clone for EffectEstimate
impl Clone for EffectEstimate
Source§fn clone(&self) -> EffectEstimate
fn clone(&self) -> EffectEstimate
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 EffectEstimate
impl RefUnwindSafe for EffectEstimate
impl Send for EffectEstimate
impl Sync for EffectEstimate
impl Unpin for EffectEstimate
impl UnwindSafe for EffectEstimate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.