A package for sampling typical distributions in astronomy
Project description
Astro Sampler
Sample from distributions commonly used in astronomy.
Installation
pip install astrosampler
Dependencies
numpy
Usage
from astrosampler import SalpeterIMF
# Sample 1000 stellar masses from the Salpeter (1955) IMF
imf = SalpeterIMF(mass_range=(0.08, 100))
masses = imf.sample(1000)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
astrosampler-0.2.0.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for astrosampler-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d54657c22807518a49d363ba0d207fc8713e49615ada394e7ee54ccbddee307 |
|
MD5 | 2cf87f7175b0470a21949d1397620f5a |
|
BLAKE2b-256 | cf5b3eb9dfeb82079d928310d0aca58ad546c1278bf89f5f36db602f219b944a |