Revision 5e090accd003efca9b5209cd9c1bab1da353c7c0 authored by Duncan Brown on 11 July 2017, 10:03:42 UTC, committed by Duncan Brown on 11 July 2017, 13:37:14 UTC
1 parent f1ae2eb
distributions.rst
###################################################
Using PyCBC Distributions from PyCBC Inference
###################################################
The aim of this page is to demonstrate some simple uses of the distributions available from the distributions.py module available at :py:mod:`pycbc.distributions`.
=========================================
Making Mass Distributions in M1 and M2
=========================================
Here we will demonstrate how to make different mass populations of binaries. This example shows uniform and gaussian mass distributions.
.. plot:: ../examples/distributions/mass_examples.py
:include-source:
========================================================
Sky Location Distribution as Spin Distribution Example
========================================================
Here we can make a distribution of spins of unit length with equal distribution in x, y, and z to sample the surface of a unit sphere.
.. plot:: ../examples/distributions/spin_examples.py
:include-source:
Using much of the same code we can also show how this sampling accurately covers the surface of a unit sphere.
.. plot:: ../examples/distributions/spin_spatial_distr_example.py
:include-source:
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...