popsynth.distributions.schechter_distribution module

class popsynth.distributions.schechter_distribution.SchechterDistribution(seed: int = 1234, name: str = 'schechter')[source]

Bases: LuminosityDistribution

Lmin
alpha
__init__(seed: int = 1234, name: str = 'schechter')[source]

A Schechter luminosity function as in Schechter, Astrophysical Journal, Vol. 203, p. 297-306 (1976).

Parameters
  • seed (int) – Random seed

  • name (str) – Name of the distribution

  • Lmin (DistributionParameter) – Minimum value of the luminosity

  • alpha (DistributionParameter) – Index of the distribution

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