scalo¶
- artpop.stars.scalo(m, **kwargs)[source]¶
The Scalo stellar initial mass function (Scalo 1998).
- Parameters
- mass_grid
ndarray Stellar mass grid.
- norm_typestr, optional
How to normalize the weights: by ‘number’, ‘mass’, or the ‘sum’.
- norm_mass_minint or None, optional
Minimum mass to use for normalization. If None, use minimum of
mass_gridwill be used.- norm_mass_maxint or None, optional
Maximum mass to use for normalization. If None, use maximum of
mass_gridwill be used.
- mass_grid
- Returns
- weights
ndarray The weights associated with each mass in the input
mass_grid.
- weights