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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file astrosampler-0.2.0.tar.gz.
File metadata
- Download URL: astrosampler-0.2.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7cfd1eeacf958b1f4af7aeee59383ab2bccbb0723947e4229ed79d83d0bbecb
|
|
| MD5 |
86fd92669eb8cf6ada276d6bd1cf54e2
|
|
| BLAKE2b-256 |
93b71b9a6445c568fefea2a225f45aaa165946e4909507f887c99de684dd2378
|
File details
Details for the file astrosampler-0.2.0-py3-none-any.whl.
File metadata
- Download URL: astrosampler-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d54657c22807518a49d363ba0d207fc8713e49615ada394e7ee54ccbddee307
|
|
| MD5 |
2cf87f7175b0470a21949d1397620f5a
|
|
| BLAKE2b-256 |
cf5b3eb9dfeb82079d928310d0aca58ad546c1278bf89f5f36db602f219b944a
|