popsynth.distributions.bpl_distribution module
- class popsynth.distributions.bpl_distribution.BPLDistribution(seed: int = 1234, name: str = 'bpl')[source]
Bases:
LuminosityDistribution
- Lmin
- alpha
- Lbreak
- beta
- Lmax
- __init__(seed: int = 1234, name: str = 'bpl')[source]
A broken power law luminosity distribution.
L ~ L^``alpha`` for L <=
Lbreak
L ~ L^``beta`` for L >Lbreak
- Parameters
seed (int) – Random seed
name (str) – Name of the distribution
Lmin (
DistributionParameter
) – Minimum value of the luminosityalpha (
DistributionParameter
) – Index of the lower power lawLbreak (
DistributionParameter
) – Luminosity of the power law breakbeta (
DistributionParameter
) – Index of the upper power lawLmax (
DistributionParameter
) – Maximum value of the luminosity
- popsynth.distributions.bpl_distribution.integrate_pl(x0, x1, x2, a1, a2)[source]
Integrate a broken power law between bounds.
- Parameters
x0 – Lower bound
x1 – Break point
x2 – Upper bound
a1 – Lower power law index
a2 – Upper power low index