pub enum GLMFamily {
Poisson,
Gamma,
Tweedie(f64),
}Expand description
The distributional family for a Generalized Linear Model.
Determines the variance function V(mu):
- Poisson: V(mu) = mu
- Gamma: V(mu) = mu^2
- Tweedie(p): V(mu) = mu^p
Variants§
Poisson
Poisson family — variance proportional to the mean.
Gamma
Gamma family — variance proportional to the squared mean.
Tweedie(f64)
Tweedie family with power parameter p.
p = 0gives Normal (constant variance)p = 1gives Poissonp = 2gives Gamma1 < p < 2gives compound Poisson-Gamma
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GLMFamily
impl RefUnwindSafe for GLMFamily
impl Send for GLMFamily
impl Sync for GLMFamily
impl Unpin for GLMFamily
impl UnsafeUnpin for GLMFamily
impl UnwindSafe for GLMFamily
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
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