pub struct RowExpectedJets {
pub mu1: f64,
pub mu2: f64,
pub mu3: f64,
pub var: f64,
pub dvar_dmu: f64,
pub d2var_dmu2: f64,
pub dispersion: f64,
}Expand description
Per-row expected jets of a GLM family/link pair at a linear predictor value: the η-derivatives of the inverse link and the μ-derivatives of the variance function. Everything Lawley needs is assembled from these by exact jet composition — no finite differences anywhere.
Fields§
§mu1: f64dμ/dη.
mu2: f64d²μ/dη².
mu3: f64d³μ/dη³.
var: f64V(μ).
dvar_dmu: f64dV/dμ.
d2var_dmu2: f64d²V/dμ².
dispersion: f64Dispersion φ (log-likelihood is [yθ − b(θ)]/φ): scales every cumulant
by 1/φ.
Implementations§
Source§impl RowExpectedJets
impl RowExpectedJets
Sourcepub fn kappas(&self) -> Result<RowKappas, String>
pub fn kappas(&self) -> Result<RowKappas, String>
Assemble the per-row cumulant scalars by jet composition of
c = μ′/V(μ) and u₀ = μ′·c.
Sourcepub fn gaussian_identity(dispersion: f64) -> RowExpectedJets
pub fn gaussian_identity(dispersion: f64) -> RowExpectedJets
Gaussian family, identity link, variance φ = σ².
Sourcepub fn poisson_log(eta: f64) -> RowExpectedJets
pub fn poisson_log(eta: f64) -> RowExpectedJets
Poisson family, log link (canonical), at linear predictor eta.
Sourcepub fn binomial_logit(eta: f64) -> RowExpectedJets
pub fn binomial_logit(eta: f64) -> RowExpectedJets
Bernoulli family, logit link (canonical), at linear predictor eta.
Sourcepub fn gamma_log(eta: f64, dispersion: f64) -> RowExpectedJets
pub fn gamma_log(eta: f64, dispersion: f64) -> RowExpectedJets
Gamma family, log link (non-canonical), at linear predictor eta with
dispersion φ (shape 1/φ; φ = 1 is the exponential distribution).
Trait Implementations§
Source§impl Clone for RowExpectedJets
impl Clone for RowExpectedJets
Source§fn clone(&self) -> RowExpectedJets
fn clone(&self) -> RowExpectedJets
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RowExpectedJets
Auto Trait Implementations§
impl Freeze for RowExpectedJets
impl RefUnwindSafe for RowExpectedJets
impl Send for RowExpectedJets
impl Sync for RowExpectedJets
impl Unpin for RowExpectedJets
impl UnsafeUnpin for RowExpectedJets
impl UnwindSafe for RowExpectedJets
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> 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,
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.