synthpop.modules.age.gaussian
A Gaussian age distribution
Stars are assigned ages from a Gaussian distribution with a mean and standard deviation.
Classes
Gaussian age distrubution generator |
Module Contents
- class synthpop.modules.age.gaussian.Gaussian(mean: float, std: float, low_bound: float = 0.0001, high_bound: float = 19.9526231497, **kwargs)
Bases:
synthpop.modules.age._age.AgeGaussian age distrubution generator
- age_func_name = 'gaussian'
- mean
- std
- lower = 0.0001
- upper = 19.9526231497
- draw_random_age(N: int or None = None, **kwargs) np.ndarray or float
Returns one or more metallicities in age [Gyr] from a Gaussian distribution.
Parameters
- Nint, None, optional
if N is set to an integer, an array with N random ages is returned
Returns
- valndarray, float [Gyr]
single age or ndarray of N ages in [Gyr]