kilopop.population_priors.draw_mass_from_EOS_bounds
- kilopop.population_priors.draw_mass_from_EOS_bounds(maximum_mass_bound, mass_lower_bound=1.0, output_shape=None)[source]
Sample a uniform distribution for the mass.
- Parameters:
maximum_mass_bound (float) – The maximum mass from which to draw the distribution. Typically, this is the TOV mass associated with the EOS. [solar masses]
mass_lower_bound (float) – The minimum mass of the distribution, default 1.0 [solar mass].
output_shape (float or tuple) – The number and array shaping structure for the draws.
- Returns:
source_frame_grav_mass – The gravitational mass of the neutron star in the source frame.
- Return type:
float