PowerLawPrior#
- class uvex_transients.models.core.priors.PowerLawPrior(alpha: float, lower: float, upper: float)[source]#
Continuous power-law prior.
The probability density is
\[\begin{split}p(x) \\propto x^{-\\alpha},\end{split}\]over the interval
[lower, upper].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