popsynth.distributions.log10_normal_distribution module

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

Bases: LuminosityDistribution

mu
tau
__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

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