Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bilby
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lscsoft
bilby
Commits
704c1ab4
Commit
704c1ab4
authored
6 years ago
by
Gregory Ashton
Browse files
Options
Downloads
Patches
Plain Diff
Add missing documentation pages
parent
65c2e54a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/compact-binary-coalescence-parameter-estimation.txt
+27
-0
27 additions, 0 deletions
docs/compact-binary-coalescence-parameter-estimation.txt
docs/prior.txt
+34
-0
34 additions, 0 deletions
docs/prior.txt
with
61 additions
and
0 deletions
docs/compact-binary-coalescence-parameter-estimation.txt
0 → 100644
+
27
−
0
View file @
704c1ab4
===============================================
Compact binary coalescence parameter estimation
===============================================
In this example, we demonstrate how to generate simulated data for a binary
black hold coalescence observed by the two LGIO interferometers at Hanford,
Livingston and the Virgo detector.
.. literalinclude:: /../examples/injection_examples/basic_tutorial.py
:language: python
:linenos:
Running this script will generate data then perform parameter estimation for
the luminosity distance, masses and inclination angle :math:`\iota`. In doing
all of this, it prints information about the matched-filter SNRs in each
detector (saved to the log-file). Moreover, it generates a plot for each
detector showing the data, amplitude spectral density (ASD) and the signal;
here is an example for the Hanford detector:
.. image:: images/H1_frequency_domain_data.png
Finally, after running the parameter estimation. It generates a corner plot:
.. image:: images/basic_tutorial_corner.png
The solid lines indicate the injection parameters.
This diff is collapsed.
Click to expand it.
docs/prior.txt
0 → 100644
+
34
−
0
View file @
704c1ab4
.. _priors:
======
Priors
======
The priors object passed to :ref:`run_sampler <run-sampler>` is just a regular
`python dictionary <https://docs.python.org/2/tutorial/datastructures.html#dictionaries>`_.
The keys of the priors objects should reference the model parameters (in
particular, the :code:`parameters` attribute of the :ref:`likelihood`. Each key
can be either
- fixed number, in which case the value is held fixed at this value. In effect,
this is a Delta-function prior,
- or a :code:`tupak.prior.Prior` instance.
If the later, it will be sampled during the parameter estimation. Here is a
simple example that sets a uniform prior for :code:`a`, and a fixed value for
:code:`b`::
priors = {}
priors['a'] = tupak.prior.Uniform(minimum=0, maximum=10, name='a', latex_label='a')
priors['b'] = 5
Notice, that the :code:`latex_label` is optional, but if given will be used
when generating plots.
We have provided a number of standard priors. Here is a complete list
.. automodule:: tupak.prior
:members:
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment