popsynth.distributions.delta_distribution module

class popsynth.distributions.delta_distribution.DeltaDistribution(seed: int = 1234, name: str = 'delta')[source]

Bases: LuminosityDistribution

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

A delta function luminosity distribution, centred on Lp.

Parameters
  • seed (int) – Random seed

  • name (str) – Name of the distribution

  • Lp (DistributionParameter) – The central value

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