Distribution index · Mixed-data likelihood · Priors
The Gamma family models positive, right-skewed magnitudes. RMC.Numerics uses constructor order
For
where
with
The mode is Mode property returns NaN in that case. Shape
For exact independent observations,
The mixed-data model replaces each exact factor with the appropriate CDF, survival, interval probability, measurement-error convolution, or threshold-count term. Nonstationary scale and shape are evaluated at each time or covariate index. The Bayesian posterior multiplies the resulting likelihood by configured parameter and quantile priors. RMC.BestFit obtains data-dependent initial values and working bounds from the Numerics constraint routine and uses those bounds for default uniform priors; positivity is the underlying distribution constraint.
Scale and shape are often strongly correlated in short samples. The mean/variance parameterization
private static (double Density, double Cdf, double Quantile) EvaluateGamma()
{
var distribution = new global::Numerics.Distributions.GammaDistribution(500.0, 3.0);
return Evaluate(distribution, value: 1800.0, nonExceedanceProbability: 0.99);
}The example specifies a scale of 500 discharge units and dimensionless shape 3. It evaluates the distribution only; a defensible frequency analysis must fit parameters through an analysis and examine uncertainty and fit diagnostics.
CDF and quantile evaluation use Numerics incomplete-gamma routines. Review checks should cover normalization, limiting probabilities, moment simulation,
The distribution verification matrix identifies the current independent formula and fitted-objective comparisons, retained Bayesian/MLE recovery designs, and their distinct acceptance rules. The compiled example guards API compatibility; it does not run an estimator or establish scientific accuracy by itself.
[1] N. L. Johnson, S. Kotz, and N. Balakrishnan, Continuous Univariate Distributions, vol. 1, 2nd ed. Wiley, 1994.