Structs§
Constants§
- EXP_
NEG_ STABLE_ MAX_ ARG - Maximum exponent argument for the one-sided overflow guard on the inverse sigma link. exp(500) ≈ 1.4e217 leaves ~91 orders of magnitude of headroom before reaching f64::MAX ≈ 1.8e308, sufficient for any reasonable downstream multiplicative chain.
- LOGB_
SIGMA_ FLOOR - Lower bound on σ in response-scaled units for the location-scale GAMLSS
noise link σ = LOGB_SIGMA_FLOOR + exp(η). Mirrors mgcv’s
gaulss(b=0.01)default. The Gaussian location-scale log-likelihood
Functions§
- exp_
neg_ stable - Overflow-safe
exp(-x): guards against overflow whenxis very negative (soexp(-x)would overflow to +inf) by capping the exponent at +500, but allows natural IEEE 754 underflow to 0.0 whenxis very positive. - exp_
sigma_ derivs_ up_ to_ fourth - exp_
sigma_ derivs_ up_ to_ fourth_ scalar - exp_
sigma_ derivs_ up_ to_ third - exp_
sigma_ derivs_ up_ to_ third_ scalar - exp_
sigma_ eta_ for_ sigma_ scalar - exp_
sigma_ from_ eta_ scalar - exp_
sigma_ inverse_ from_ eta_ scalar - Inverse exp-link
1/σ = exp(-η)with the one-sided overflow guard fromexp_neg_stable. Required by every solver path that forms products liket · exp(-η_ls)— without the guard, very negative η_ls produces+inf, which propagates asNaNthrough subsequent multiplications and breaks the monotonicity floor / penalty chain. - exp_
sigma_ jet1_ scalar - exp_
sigma_ jet3_ scalar - logb_
sigma_ derivs_ up_ to_ fourth - logb_
sigma_ derivs_ up_ to_ fourth_ scalar - logb_
sigma_ derivs_ up_ to_ third_ scalar - logb_
sigma_ eta_ for_ sigma_ scalar - logb_
sigma_ from_ eta_ scalar - logb_
sigma_ from_ eta_ with_ floor_ scalar - Reconstruct σ from η with an explicit, response-scale-relative floor.
- logb_
sigma_ jet1_ scalar - logb_
sigma_ jet3_ scalar - safe_
exp - Exact exponential link on the native
f64range.