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

Public Member Functions

def __init__
 
def p_of_instruments_given_horizons
 
def load_time_phase_snr
 

Public Attributes

 min_instruments
 

Static Public Attributes

dictionary p_of_ifos = {}
 
 time_phase_snr = None
 

Detailed Description

Helper class to use preinitialized data for the extrinsic parameter
calculation. Presently only H,L,V is supported. K could be added by making new
data files with :py:class:`TimePhaseSNR` and :py:class:`p_of_instruments_given_horizons`.

This class is used to compute p_of_instruments_given_horizons
and the probability of getting time phase and snrs from
a given instrument combination.  The argument min_instruments will be
used to normalize the p_of_instruments_given_horizons to set the probability of
a combination with fewer than min_instruments to be 0.

>>> IE = InspiralExtrinsics()
>>> IE.p_of_instruments_given_horizons(("H1","L1"), {"H1":200, "L1":200})
0.36681567679586446
>>> IE.p_of_instruments_given_horizons(("H1","L1"), {"H1":20, "L1":200})
0.0021601523270060085
>>> IE.p_of_instruments_given_horizons(("H1","L1"), {"H1":200, "L1":200, "V1":200})
0.14534898937680402

>>> IE.p_of_instruments_given_horizons(("H1","L1"), {"H1":200, "L1":200, "V1":200}) + IE.p_of_instruments_given_horizons(("H1","V1"), {"H1":200, "L1":200, "V1":200}) + IE.p_of_instruments_given_horizons(("L1","V1"), {"H1":200, "L1":200, "V1":200}) + IE.p_of_instruments_given_horizons(("H1","L1","V1"), {"H1":200, "L1":200, "V1":200})
1.0

>>> IE.time_phase_snr({"H1":0.001, "L1":0.0, "V1":0.004}, {"H1":1.3, "L1":4.6, "V1":5.3}, {"H1":20, "L1":20, "V1":4}, {"H1":200, "L1":200, "V1":50})
array([  1.01240596e-06], dtype=float32)
>>> IE.time_phase_snr({"H1":0.001, "L1":0.0, "V1":0.004}, {"H1":1.3, "L1":1.6, "V1":5.3}, {"H1":20, "L1":20, "V1":4}, {"H1":200, "L1":200, "V1":50})
array([  1.47201028e-15], dtype=float32)

The total probability would be the product, e.g.,

>>> IE.time_phase_snr({"H1":0.001, "L1":0.0, "V1":0.004}, {"H1":1.3, "L1":4.6, "V1":5.3}, {"H1":20, "L1":20, "V1":8}, {"H1":200, "L1":200, "V1":200}) * IE.p_of_instruments_given_horizons(("H1","L1","V1"), {"H1":200, "L1":200, "V1":200})
array([  2.00510986e-08], dtype=float32)

See the following for more details:

* :py:class:`TimePhaseSNR`
* :py:class:`p_of_instruments_given_horizons`

Definition at line 1947 of file inspiral_extrinsics.py.


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