popsynth.distributions.bpl_distribution module¶
-
class
popsynth.distributions.bpl_distribution.
BPLDistribution
(seed: int = 1234, name: str = 'bpl')[source]¶ Bases:
popsynth.distribution.LuminosityDistribution
-
Lbreak
¶
-
Lmax
¶
-
Lmin
¶
-
__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 luminosity - alpha (
DistributionParameter
) – Index of the lower power law - Lbreak (
DistributionParameter
) – Luminosity of the power law break - beta (
DistributionParameter
) – Index of the upper power law - Lmax (
DistributionParameter
) – Maximum value of the luminosity
-
alpha
¶
-
beta
¶
-
-
popsynth.distributions.bpl_distribution.
bpl
(x, x0, x1, x2, a1, a2)[source]¶ Broken power law between bounds.
Parameters: - x – The domain of the function
- x0 – Lower bound
- x1 – Break point
- x2 – Upper bound
- a1 – Lower power law index
- a2 – Upper power low index