salpeter

artpop.stars.salpeter(m, **kwargs)[source]

Wrapper function to calculate weights for the Salpeter IMF (Salpeter 1955).

Parameters
mass_gridndarray

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_grid will be used.

norm_mass_maxint or None, optional

Maximum mass to use for normalization. If None, use maximum of mass_grid will be used.

Returns
weightsndarray

The weights associated with each mass in the input mass_grid.