popsynth.distributions.log_normal_distribution module

class popsynth.distributions.log_normal_distribution.LogNormalDistribution(seed: int = 1234, name: str = 'lognorm')[source]

Bases: LuminosityDistribution

mu
tau
__init__(seed: int = 1234, name: str = 'lognorm')[source]

A log-normal luminosity distribution.

LogNormal(mu, tau)

Parameters
  • seed (int) – Random seed

  • name (str) – Name of the distribution

  • mu (DistributionParameter) – Mean of the log normal

  • tau (DistributionParameter) – Standard deviation of the log normal

phi(L)[source]

The functional form of the distribution. not required for sampling :param luminosity: Luminosity

draw_luminosity(size=1)[source]

function to draw the luminosity via an alternative method must be implemented in child class

Parameters

size

Returns