MixturePrior#
- class uvex_transients.models.core.priors.MixturePrior(components: tuple[Prior, ...], weights: ndarray)[source]#
Weighted mixture of component priors.
The density is the weighted sum of the components’ densities,
\[p(x) = \sum_i w_i\,p_i(x),\]with
weightsnormalized to sum to 1.- weights#
Relative weight of each component, in the same order as
components. Need not sum to 1; normalized internally.- Type:
ndarray
Methods
cdf(x)Evaluate the cumulative distribution function.
logcdf(x)Evaluate the log cumulative distribution function.
logpdf(x)Evaluate the log probability density function.
logpmf(x)Evaluate the log probability mass function.
pdf(x)Evaluate the probability density function.
pmf(x)Evaluate the probability mass function.
registry()dict[str, type[Prior]]: A copy of every concrete Prior subclass, keyed by DISTRIBUTION_NAME.
sample([size, rng])Draw random samples from the prior.
Attributes
The public-facing name of this distribution prior class.
Human-readable name of the distribution.
the union of every component's support,
(min(lowers), max(uppers)).