popsynth.distributions.log10_normal_distribution module

class popsynth.distributions.log10_normal_distribution.Log10NormalDistribution(seed: int = 1234, name: str = 'log10norm')[source]

Bases: popsynth.distribution.LuminosityDistribution

__init__(seed: int = 1234, name: str = 'log10norm')[source]

A log10-normal luminosity function

Log10Normal(mu, tau)

Parameters:
  • seed (int) – Random seed
  • name (str) – Name of the distribution
  • mu (DistributionParameter) – Mean of the log10 normal
  • tau (DistributionParameter) – Standard deviation of the log10 normal
draw_luminosity(size=1)[source]

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

Parameters:size
Returns:
mu
phi(L)[source]

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

tau