The IMF package: a toolkit implementing mass functions and statistical tools to analyze them
Theo Richardson, Adam Ginsburg, Sergey Koposov
astro-ph.IM, astro-ph.GA, astro-ph.HE, astro-ph.SR
Submitted: 2026-07-28
Comments: 18 pages, 8 figures, 2 tables. Includes appendix: 3 pages, 1 figure. To be published in AJ. imf is accessible on pypi at https://pypi.org/project/initial-mass-function and has a GitHub repository at https://github.com/keflavich/imf
Code: https://github.com/keflavich/imf
License: http://creativecommons.org/licenses/by/4.0/
The gist: Mass functions are used in all areas of astrophysics.
Terminology
Abstract
Mass functions are used in all areas of astrophysics. The stellar initial mass function (IMF), in particular, plays a central role in modeling stellar populations in galaxies. However, few dedicated tools for working directly with the IMF and its precursor functions are widely available. We present the imf package, a Python library integrated into the wider scientific Python ecosystem that implements common and variant forms of mass functions, especially the IMF and its pre- and protostellar equivalents, as probability distribution functions based on SciPy's statistics architecture. This package enables the performance of operations such as sampling and integration on a wide array of highly customizable mass functions. imf is publicly available on the Python package index pypi under the project name initial mass function.
Sources
- The Origin and Evolution of Multiple Star Systems
- Confidently Wrong: Why Ignoring Binaries Biases IMF Inference at Large Sample Sizes
Related papers
- A signal dedispersion algorithm for imaging-based transient searches
- AVICA: A fully automated CASA pipeline for large volume VLBI data calibration
- Spectral Map Making with SPHEREx
- Long-Integration Magnetar Burst Observatory (LIMBO): Instrument Summary and Early FRB Rate Constraints
- Towards independent event horizon imaging of the supermassive black holes in M87 and the Milky Way
- A PINK update: Improvements to the CELEBI fast radio burst data reduction and analysis pipeline