pub struct Ratio {
pub point: f64,
pub lcb95: Option<f64>,
pub method: RatioMethod,
pub n: usize,
}Expand description
P-5 — one metric’s ratio, with the bound the verdict is taken on.
point is x_subject / x_comparator. lcb95 is the one-sided 95% lower
confidence bound; None means the design could not support one and the
ratio is REPORTING only.
Fields§
§point: f64The ratio on the observed data.
lcb95: Option<f64>One-sided 95% lower bound, or None when the design cannot support one.
method: RatioMethodWhich estimator produced it.
n: usizeObservations the estimator used — replicates or requests, per method.
Implementations§
Source§impl Ratio
impl Ratio
Sourcepub fn reporting_only(point: f64, method: RatioMethod, n: usize) -> Self
pub fn reporting_only(point: f64, method: RatioMethod, n: usize) -> Self
A ratio with no bound, for a design that cannot support one (n < 5
replicates). REPORTING only: P-5’s verdict needs lcb95.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ratio
impl<'de> Deserialize<'de> for Ratio
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
impl StructuralPartialEq for Ratio
Auto Trait Implementations§
impl Freeze for Ratio
impl RefUnwindSafe for Ratio
impl Send for Ratio
impl Sync for Ratio
impl Unpin for Ratio
impl UnsafeUnpin for Ratio
impl UnwindSafe for Ratio
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more