pub struct NormalGamma {
pub mean: f64,
pub precision: f64,
pub shape: f64,
pub rate: f64,
}Expand description
The Normal-Gamma prior of a segment’s mean mu and precision lambda:
lambda ~ Gamma(shape, rate) and mu | lambda ~ N(mean, 1 / (precision lambda)).
Fields§
§mean: f64The prior mean of the segment mean.
precision: f64How many values’ worth of weight the prior mean has, > 0.
shape: f64The shape of the precision’s Gamma prior, >= 0.5.
rate: f64The rate of the precision’s Gamma prior, > 0; the prior mean of the precision is
shape / rate.
Implementations§
Source§impl NormalGamma
impl NormalGamma
Trait Implementations§
Source§impl Clone for NormalGamma
impl Clone for NormalGamma
impl Copy for NormalGamma
Source§impl Debug for NormalGamma
impl Debug for NormalGamma
Source§impl PartialEq for NormalGamma
impl PartialEq for NormalGamma
impl StructuralPartialEq for NormalGamma
Auto Trait Implementations§
impl Forget for NormalGamma
impl Freeze for NormalGamma
impl Move for NormalGamma
impl RefUnwindSafe for NormalGamma
impl Send for NormalGamma
impl Sync for NormalGamma
impl Unpin for NormalGamma
impl UnsafeUnpin for NormalGamma
impl UnwindSafe for NormalGamma
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