uvex_transients.models.core.priors.MixturePrior.cdf#

MixturePrior.cdf(x: NDArray[float64]) → NDArray[float64] | float#

Evaluate the cumulative distribution function.

Computed by numerically integrating pdf() from the lower edge of support up to each point in x (scipy.integrate.quad()). This is intended for introspection/diagnostics (e.g. plotting); it is not used by sample(), which relies on NumericalInversePolynomial instead.

Parameters:

x (array_like) – Points at which to evaluate the CDF.

Returns:

The CDF at each point in x. Returns a scalar if input was a scalar, otherwise returns an array with the same shape as the input.

Return type:

numpy.ndarray or float