Expand description
Multi-parameter GAMLSS family stack, organized into real concern modules.
The historical single-file module was split textually with include!; this
is the genuine module decomposition. The fitting math is one tightly-coupled
namespace (families share layouts, the location-scale joint-ψ machinery, and
the numeric foundation), so the concern submodules each open with
use super::*; and this parent re-exports their cross-concern items flat via
pub(crate) use <module>::*. That keeps every intra-stack reference resolving
without a web of explicit per-symbol imports, while each file now holds a
single concern:
errors—GamlssError, module-wide numeric constants, the low-level row-map / design-resolution / joint-ψ-direction helpers, and theParameterLinklink-identifier enum (the shared foundation every family builds on).builders— block/penalty construction, term specs, fit-result types, theLocationScaleFamilyBuilderstrategy + its four builders, and the publicfit_*entry points (construction & orchestration).gaussian— the Gaussian location-scale family (+ its wiggle variant), the shared location-scale joint-ψ trait/workspace, the Gaussian joint-Hessian assembly, the matrix-freeRowCoeffOperator, and the Poisson/Gamma log-link families.binomial— the binomial location-scale numeric kernel (q-algebra, towers, directional coefficients) and the binomial location-scale / wiggle / mean-wiggle families plus their exact-Newton Hessian workspaces.
Pre-existing leaf concerns keep their own modules: dispersion_family,
binomial_q_derivs, binomial_q_coeffs, validation,
weighted_design_products, row_linalg, and joint_packing.
Structs§
- Binomial
Location Scale AloRow Input - Complete saved-row state for exact binomial location-scale ALO replay.
- Binomial
Location Scale Family - Binomial
Location Scale FitResult - Binomial
Location Scale Term Spec - Binomial
Location Scale Wiggle Family - Binomial
Location Scale Wiggle Term Spec - Binomial
Mean Wiggle Family - Binomial
Mean Wiggle Term FitResult - Blockwise
Term FitResult - Blockwise
Term Wiggle FitResult - Dispersion
AloRow Geometry - Exact row-local geometry consumed by saved-model case deletion.
- Dispersion
GlmLocation Scale Term Spec - Term spec consumed by
fit_dispersion_glm_location_scale_terms; mirrorsGaussianLocationScaleTermSpecwith the dispersion channel in place of the Gaussian log-σ channel. - Family
Metadata - Gamma
LogFamily - Built-in Gamma log-link family (single parameter block, fixed shape).
- Gaussian
Joint RowProgram - Production
gam_math::jet_tower::RowProgramfor the normalized Gaussian location-scale row NLL. - Gaussian
Joint RowScalars - Gaussian
Location Scale AloRow Input - Complete saved-row state for exact Gaussian location-scale ALO replay.
- Gaussian
Location Scale Family - Gaussian
Location Scale FitResult - Gaussian
Location Scale Term Spec - Gaussian
Location Scale Wiggle Family - Gaussian
Location Scale Wiggle Term Spec - Location
Scale AloRow Geometry - Exact row-local saved-model geometry in affine likelihood coordinates.
- Poisson
LogFamily
Enums§
- Dispersion
Family Kind - The genuine-dispersion mean family whose precision (overdispersion) channel
can carry a second
noise_formulalinear predictor (issue #913). - Gamlss
Error - Typed errors surfaced from this module’s helpers and family
implementations. The
Displayimpl writes the carriedreasonverbatim, so callers that historically returnedResult<_, String>keep their user-visible text byte-for-byte identical after coercion via theFrom<GamlssError> for Stringimpl below. - Parameter
Link - Link identifiers for distribution parameters in multi-parameter GAMLSS families.
Constants§
- FAMILY_
BETA_ LOCATION_ SCALE - FAMILY_
GAMMA_ LOCATION_ SCALE - FAMILY_
NEGBIN_ LOCATION_ SCALE - FAMILY_
TWEEDIE_ LOCATION_ SCALE
Functions§
- binomial_
location_ scale_ alo_ row_ geometry - Replay one binomial threshold-scale row in affine saved coordinates.
- dispersion_
alo_ row_ geometry - Replay the exact fitted row likelihood in its two affine predictor coordinates for saved-model ALO.
- fit_
dispersion_ glm_ location_ scale_ terms - Fit a dispersion-channel GAMLSS location-scale model (#913). All four
genuine-dispersion mean families share this single entry; the per-family
likelihood lives in
dispersion_row_kernel. - gaussian_
location_ scale_ alo_ row_ geometry - Replay one Gaussian location-scale row in the raw saved coefficient frame.