#[non_exhaustive]pub struct EffectEstimate {
pub control: f64,
pub variant: f64,
pub difference: f64,
pub difference_interval: Option<Interval>,
pub relative_lift: Option<f64>,
pub relative_interval: Option<Interval>,
}Expand description
The effect of the variant on one metric (spec 3.5 §7.12).
Differences are variant minus control in the metric’s units: a rate for a proportion, a
mean for a mean. Intervals are None until both arms reach the minimum units.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.control: f64The control’s estimate.
variant: f64The variant’s estimate.
difference: f64Variant minus control.
difference_interval: Option<Interval>The interval of the difference.
relative_lift: Option<f64>The difference relative to the control; None when the control’s estimate is zero.
relative_interval: Option<Interval>The interval of the relative lift, by the delta method.
Trait Implementations§
Source§impl Clone for EffectEstimate
impl Clone for EffectEstimate
impl Copy for EffectEstimate
Source§impl Debug for EffectEstimate
impl Debug for EffectEstimate
Source§impl<'de> Deserialize<'de> for EffectEstimate
impl<'de> Deserialize<'de> for EffectEstimate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EffectEstimate
impl PartialEq for EffectEstimate
Source§impl Serialize for EffectEstimate
impl Serialize for EffectEstimate
impl StructuralPartialEq for EffectEstimate
Auto Trait Implementations§
impl Forget for EffectEstimate
impl Freeze for EffectEstimate
impl Move for EffectEstimate
impl RefUnwindSafe for EffectEstimate
impl Send for EffectEstimate
impl Sync for EffectEstimate
impl Unpin for EffectEstimate
impl UnsafeUnpin 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