The IMF Package: A Toolkit Implementing Mass Functions and Statistical Tools to Analyze Them
Theo Richardson, Adam Ginsburg, Sergey Koposov
University of Florida · University of Cambridge
Key points
From the paper's conclusion- 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.
Abstract
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 .
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- IMFIT-MW: Multiwavelength photometric decomposition with IMFITarXiv · 2026
- Stellar initial mass function in the 100-pc solar neighbourhoodMonthly Notices of the Royal Astronomical Society · 2026
- Agents for astronomical software and astronomical software for agents: Bidirectional enhancement in development and scientific reliabilityAstronomy and Computing · 2026
- The accretion rate resulting in the initial mass functionThe European Physical Journal Plus · 2026
- The system initial mass function of Orion OB1b from probabilistic Gaia DR3 membershipsarXiv · 2026
- SpecFANN: Spectral Fitting via Artificial Neural Networks. I. A deep-learning-based emulator and fitting suiteAstronomy and Astrophysics · 2026