pub enum ResolvedGammaScale {
Shape(PositiveLikelihoodScale),
Dispersion(PositiveLikelihoodScale),
}Expand description
Gamma may be resolved from a shape directly or from a fixed dispersion
phi = 1 / shape. Keeping the provenance avoids an eager reciprocal that
can overflow even though log(shape) = -log(phi) remains representable.
Variants§
Shape(PositiveLikelihoodScale)
Dispersion(PositiveLikelihoodScale)
Trait Implementations§
Source§impl Clone for ResolvedGammaScale
impl Clone for ResolvedGammaScale
Source§fn clone(&self) -> ResolvedGammaScale
fn clone(&self) -> ResolvedGammaScale
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResolvedGammaScale
Source§impl Debug for ResolvedGammaScale
impl Debug for ResolvedGammaScale
Source§impl PartialEq for ResolvedGammaScale
impl PartialEq for ResolvedGammaScale
impl StructuralPartialEq for ResolvedGammaScale
Auto Trait Implementations§
impl Freeze for ResolvedGammaScale
impl RefUnwindSafe for ResolvedGammaScale
impl Send for ResolvedGammaScale
impl Sync for ResolvedGammaScale
impl Unpin for ResolvedGammaScale
impl UnsafeUnpin for ResolvedGammaScale
impl UnwindSafe for ResolvedGammaScale
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