Revision c8d47ea718755b68fc5cad339a118734810f0554 authored by Collin Capano on 22 June 2020, 17:31:22 UTC, committed by GitHub on 22 June 2020, 17:31:22 UTC
* add generic spherical <-> cartesian transforms; deprecation warnings for spin12 transforms * fix typo, use sphericaltocartesian in common cbc transforms * fix typos, register transform * update example ini file * initialize cartesian to spherical with right arguments in test * fix bug in inverse transform * pep8
1 parent fdaaf42
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 ...