pub struct PeriodSummary<K> {
pub period: Option<K>,
pub n: usize,
pub weight: f64,
pub actual: f64,
pub expected: f64,
pub std_dev: f64,
}Expand description
One period’s (or the total’s) actual against expected.
Fields§
§period: Option<K>The period (None for the total).
n: usizeNumber of rows.
weight: f64Σ w: exposure or prior weight.
actual: f64Σ w y.
expected: f64Σ w μ.
std_dev: f64Standard deviation of A - E under the model,
√(φ Σ w V(μ)).
Implementations§
Trait Implementations§
Source§impl<K: Clone> Clone for PeriodSummary<K>
impl<K: Clone> Clone for PeriodSummary<K>
Source§impl<K: Debug> Debug for PeriodSummary<K>
impl<K: Debug> Debug for PeriodSummary<K>
Source§impl<K: PartialEq> PartialEq for PeriodSummary<K>
impl<K: PartialEq> PartialEq for PeriodSummary<K>
impl<K: PartialEq> StructuralPartialEq for PeriodSummary<K>
Auto Trait Implementations§
impl<K> Freeze for PeriodSummary<K>
impl<K> RefUnwindSafe for PeriodSummary<K>where
Option<K>: RefUnwindSafe,
impl<K> Send for PeriodSummary<K>
impl<K> Sync for PeriodSummary<K>
impl<K> Unpin for PeriodSummary<K>
impl<K> UnsafeUnpin for PeriodSummary<K>where
Option<K>: UnsafeUnpin,
impl<K> UnwindSafe for PeriodSummary<K>where
Option<K>: UnwindSafe,
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,
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