Skip to main content

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)

Uploaded Source

Built Distribution

astrosampler-0.2.0-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page