LogNormalPrior#

class uvex_transients.models.core.priors.LogNormalPrior(mean: float, sigma: float)[source]#

Log-normal prior.

Samples are generated as

\[\begin{split}x = \\exp(y),\end{split}\]

where

\[\begin{split}y \\sim \\mathcal{N}(\\mu, \\sigma).\end{split}\]
mean#

Mean of the underlying normal distribution.

Type:

float

sigma#

Standard deviation of the underlying normal distribution.

Type:

float

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

DISTRIBUTION_NAME

The public-facing name of this distribution prior class.

name

Human-readable name of the distribution.

support

(0.0, inf).

mean

sigma