gstlal-inspiral  1.9.3
 All Classes Namespaces Files Functions
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
stats.inspiral_extrinsics.p_of_instruments_given_horizons Class Reference
Inheritance diagram for stats.inspiral_extrinsics.p_of_instruments_given_horizons:
[legend]
Collaboration diagram for stats.inspiral_extrinsics.p_of_instruments_given_horizons:
[legend]

Public Member Functions

def __init__
 
def mkinterp
 
def __call__
 
def to_hdf5
 

Static Public Member Functions

def from_hdf5
 

Public Attributes

 instruments
 
 snr_thresh
 
 nbins
 
 hmin
 
 hmax
 
 histograms
 
 first_center
 
 last_center
 
 interps
 

Detailed Description

The goal of this class is to compute :math:`P(\\vec{O} | \\vec{D_H},
s)`.  In order to compute it, the SNR is calculated for an ideal signal as a
function of given sky location and distance and then integrated over the
extrinsic parameters to figure out the probability that a signal produces an
above SNR event in each of the :math:`\\vec{O}` detectors.  This
probability is computed for many possible horizon distance combinations. In
other words the probability of having H and L participate in a coinc when H, L,
and V are operating is,

.. math::

    P(H, L | D_H, D_L, D_V, s) = \int_\Sigma P(\\rho_{H}, \\rho_{L}, \\rho_{V} | D_H, D_L, D_V, s)

where

.. math::

    \Sigma \equiv
    \\begin{cases}
        \\rho_H \geq \\rho_m \\\\
        \\rho_H \geq \\rho_m \\\\
        \\rho_V \leq \\rho_m
    \end{cases}

with :math:`\\rho_m` as the SNR threshold of the pipeline.  We
construct :math:`P(\\rho_{H},\ldots | \dots)` from random sampling of uniform
location and orientation sources and according to distance squared.  The
location / orientation sampling is identical to the one used in
:py:class:`TimePhaseSNR`.  We add a random jitter to each SNR according to a
chi-squared distribution with two degrees of freedom.

The result of this is stored in a histogram, which means we choose quanta of horizon distances to do the calculation. Since we only care about
the ratios of horizon distances in this calculation, the horizon distance for
the first detector in alphabetical order are by convention 1.  The ratios of horizon distances for the other detectors are logarithmically spaced between 0.05 and 20.  Below are a couple of example histograms.

**Example: 1D histogram for** :math:`p(H1,L1 | D_H, D_L)`:

This is a 1x41 array representing the following probabilities:

+-----------------------------------------------------+------------+----------+-----------------------------------------------------+
| :math:`p(H1,L1| D_H = 1, D_L = 0.05)`               | ...        | ...      | :math:`p(H1,L1| D_H = 1, D_L = 19)`                 |
+-----------------------------------------------------+------------+----------+-----------------------------------------------------+

Note, linear interpolation is used over the bins

**Example 2D histogram for** :math:`p(H1,L1,V1 | D_H, D_L, D_V)`:

This is a 41x41 array representing the following probabilities:

+-----------------------------------------------------+------------+----------+-----------------------------------------------------+
| :math:`p(H1,L1,V1| D_H = 1, D_L = 0.05, D_V= 0.05)` | ...        | ...      | :math:`p(H1,L1,V1| D_H = 1, D_L = 19, D_V= 0.05)`   |
+-----------------------------------------------------+------------+----------+-----------------------------------------------------+
| :math:`p(H1,L1,V1| D_H = 1, D_L = 0.05, D_V= 0.06)` | ...        | ...      | :math:`p(H1,L1,V1| D_H = 1, D_L = 19, D_V= 0.06)`   |
+-----------------------------------------------------+------------+----------+-----------------------------------------------------+
| ...                                                 | ...        | ...      | ...                                                 |
+-----------------------------------------------------+------------+----------+-----------------------------------------------------+
| :math:`p(H1,L1,V1| D_H = 1, D_L = 0.05, D_V= 19)`   | ...        | ...      | :math:`p(H1,L1,V1| D_H = 1, D_L = 19, D_V= 19)`     |
+-----------------------------------------------------+------------+----------+-----------------------------------------------------+

Note, linear interpolation is used over the bins

Definition at line 1587 of file inspiral_extrinsics.py.

Constructor & Destructor Documentation

def stats.inspiral_extrinsics.p_of_instruments_given_horizons.__init__ (   self,
  instruments = ("H1", "L1",
  V1,
  snr_thresh = 4.,
  nbins = 41,
  hmin = 0.05,
  hmax = 20.0,
  histograms = None,
  bin_start = 0,
  bin_stop = None 
)
for each sub-combintation of the "on" instruments, e.g.,
"H1","L1" out of "H1","L1","V1", the probability of getting a trigger above the
snr_thresh in each of e.g., "H1", "L1" is computed for different horizon
distance ratios bracketed from hmin to hmax in nbins per dimension.  Horizon
distance ratios form an N-1 dimensional function where N is the number of
instruments in the sub combination.  Thus computing the probability of a triple
coincidence detection requires a two dimensional histogram with nbins^2 number
of points.  The probability is interpolated over the bins with linear
interpolation.

NOTE! This is a very slow class to initialize from scratch in
normal circumstances you would use the from_hdf5() method to load precomputed
values.  NOTE the :py:class`InspiralExtrinsics` provides a helper class to load
precomputed data.  See its documentation.  In general *always
use* :py:class`InspiralExtrinsics`

Definition at line 1650 of file inspiral_extrinsics.py.

Member Function Documentation

def stats.inspiral_extrinsics.p_of_instruments_given_horizons.__call__ (   self,
  instruments,
  horizon_distances 
)
Calculate the probability of getting a trigger in instruments
given the horizon distances.  NOTE! this should never be called directly.
Always use the helper class InspiralExtrinsics in order to deal with different
possibilities for min_instruments (i.e., running an analysis with singles
enabled or not)

Definition at line 1873 of file inspiral_extrinsics.py.

def stats.inspiral_extrinsics.p_of_instruments_given_horizons.from_hdf5 (   fname,
  other_fnames = [],
  kwargs 
)
static
Read data from a file so that you don't have to remake it from scratch

Definition at line 1900 of file inspiral_extrinsics.py.

def stats.inspiral_extrinsics.p_of_instruments_given_horizons.mkinterp (   self)
Create an interpolated represenation over the grid of horizon ratios

Definition at line 1865 of file inspiral_extrinsics.py.

def stats.inspiral_extrinsics.p_of_instruments_given_horizons.to_hdf5 (   self,
  fname 
)
Record the class data to a file so that you don't have to remake it from scratch

Definition at line 1884 of file inspiral_extrinsics.py.


The documentation for this class was generated from the following file: