View source on GitHub
|
Define a LogNormal distribution from a specified range.
meridian.model.prior_distribution.lognormal_dist_from_range(
low: (float | Sequence[float]),
high: (float | Sequence[float]),
mass_percent: (float | Sequence[float]) = 0.95
) -> backend.tfd.LogNormal
This function parameterizes lognormal distributions by the bounds of a range,
so that the specified probability mass falls within the bounds defined by
low and high. The probability mass is symmetric about the median. For
example, to define a lognormal distribution with a 95% probability mass of
(1, 10), use:
lognormal = lognormal_dist_from_range(1.0, 10.0, mass_percent=0.95)
Returns | |
|---|---|
A backend.tfd.LogNormal object with the input percentage mass falling
within the given range.
|
View source on GitHub