synthpop.modules.age.gaussian ============================= .. py:module:: synthpop.modules.age.gaussian .. autoapi-nested-parse:: A Gaussian age distribution Stars are assigned ages from a Gaussian distribution with a mean and standard deviation. Classes ------- .. autoapisummary:: synthpop.modules.age.gaussian.Gaussian Module Contents --------------- .. py:class:: Gaussian(mean: float, std: float, low_bound: float = 0.0001, high_bound: float = 19.9526231497, **kwargs) Bases: :py:obj:`synthpop.modules.age._age.Age` Gaussian age distrubution generator .. py:attribute:: age_func_name :value: 'gaussian' .. py:attribute:: mean .. py:attribute:: std .. py:attribute:: lower :value: 0.0001 .. py:attribute:: upper :value: 19.9526231497 .. py:method:: 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 ---------- N : int, None, optional if N is set to an integer, an array with N random ages is returned Returns ------- val : ndarray, float [Gyr] single age or ndarray of N ages in [Gyr] .. py:method:: average_age() -> float Return the average age of the population .. py:method:: get_maximum_age() -> float Return the maximum age that can be generated by the distribution.