pub enum LocationScaleResponse<'a> {
Gaussian {
response_scale: f64,
base_link: Option<InverseLink>,
},
Binomial {
link: InverseLink,
noise_transform: &'a ScaleDeviationTransform,
},
Dispersion {
likelihood: LikelihoodSpec,
base_link: InverseLink,
family_tag: &'static str,
},
}Expand description
Which likelihood a (non-survival) location-scale model carries: Gaussian
(residual response scale) or binomial (noise scale-deviation transform whose
likelihood is resolved from the inverse link). The assembler resolves the
FittedFamily from this once, rather than each save path stamping a
(potentially wrong) likelihood and patching it afterwards.
Variants§
Gaussian
Gaussian identity; base_link is the optional resolved base link the CLI
may pass through from link(...) (the FFI leaves it None).
Binomial
Binomial under link, with the encoded noise scale-deviation transform.
Dispersion
A genuine-dispersion mean family (NegativeBinomial / Gamma / Beta /
Tweedie) whose log-precision channel carries noise_formula (#913). The
likelihood is the family’s own LikelihoodSpec; base_link is the
mean inverse link (log, or logit for Beta). The log-precision block
coefficients ride in LocationScaleInputs::beta_noise.
Auto Trait Implementations§
impl<'a> Freeze for LocationScaleResponse<'a>
impl<'a> RefUnwindSafe for LocationScaleResponse<'a>
impl<'a> Send for LocationScaleResponse<'a>
impl<'a> Sync for LocationScaleResponse<'a>
impl<'a> Unpin for LocationScaleResponse<'a>
impl<'a> UnsafeUnpin for LocationScaleResponse<'a>
impl<'a> UnwindSafe for LocationScaleResponse<'a>
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.