Revision edcf092861efad7a8c0bb968de3d6c91c9a2a63b authored by Miriam Cabero on 13 June 2019, 16:32:34 UTC, committed by Ian Harry on 17 June 2019, 09:06:06 UTC
1 parent 9241d29
Raw File
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:
back to top