synthpop.modules.age.gaussian

A Gaussian age distribution

Stars are assigned ages from a Gaussian distribution with a mean and standard deviation.

Classes

Gaussian

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.Age

Gaussian 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]

average_age() float

Return the average age of the population

get_maximum_age() float

Return the maximum age that can be generated by the distribution.