Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 1.8 KB

README.rst

File metadata and controls

49 lines (30 loc) · 1.8 KB

VDF sampler

https://dl.circleci.com/status-badge/img/gh/Vikramb1/Lens_population_sampler/tree/main.svg?style=shield Documentation Status

Python package to sample from a velocity dispersion function of ellictical galaxies in the local universe

Example

# import package
from lens_population_sampler import vdf_sampler

# produces 1000 samples with velocity dispersion between 100 and 200. The approximation uses 500 bins.
samples = vdf_sampler.sample_vdf(100, 200, resolution = 500, size = 1000)
print(samples)

Credits

This package uses the function derived from analysing the velocity dispersions of ellictical galaxies using the Sloan Digital Sky Survey in (Choi, Park, & Vogeley (2007)).

This package uses a modified class from hierArc, created by Simon Birrer.

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.