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

Classes

class  cacheentry
 
class  LIGOLWContentHandler
 

Public Member Functions

def __init__
 
def quantize_horizon_distances
 
def quants
 
def quantized_horizon_distances
 
def snr_joint_pdf_keyfunc
 
def get_snr_joint_pdf_binnedarray
 
def get_snr_joint_pdf
 
def lnP_instruments
 
def lnP_snrs
 
def add_to_cache
 
def from_xml
 
def to_xml
 
def load
 

Static Public Member Functions

def joint_pdf_of_snrs
 

Public Attributes

 snr_cutoff
 
 log_distance_tolerance
 
 min_ratio
 

Static Public Attributes

tuple DEFAULT_FILENAME = os.path.join(gstlal_config_paths["pkgdatadir"], "inspiral_snr_pdf.xml.gz")
 
dictionary snr_joint_pdf_cache = {}
 

Detailed Description

Definition at line 426 of file inspiral_extrinsics.py.

Constructor & Destructor Documentation

def stats.inspiral_extrinsics.SNRPDF.__init__ (   self,
  snr_cutoff,
  log_distance_tolerance = math.log(1.05),
  min_ratio = 0.1 
)
snr_cutoff sets the minimum SNR below which it is
impossible to obtain a candidate (the trigger SNR
threshold).

min_ratio sets the minimum sensitivity an instrument must
achieve to be considered to be on at all.  An instrument
whose horizon distance is less than min_ratio * the horizon
distance of the most sensitive instrument is considered to
be off (it's horizon distance is set to 0).

Definition at line 453 of file inspiral_extrinsics.py.

Member Function Documentation

def stats.inspiral_extrinsics.SNRPDF.joint_pdf_of_snrs (   instruments,
  inst_horiz_mapping,
  snr_cutoff,
  n_samples = 160000,
  bins = rate.ATanLogarithmicBins(3.6, 1200.,
  progressbar = None 
)
static
Return a BinnedArray containing

P(snr_{inst1}, snr_{inst2}, ... | signal seen in exactly
    {inst1, inst2, ...} in a network of instruments
    with a given set of horizon distances)

i.e., the joint probability density of observing a set of
SNRs conditional on them being the result of signal that
has been recovered in a given subset of the instruments in
a network of instruments with a given set of horizon
distances.

The snr_cutoff parameter sets the minimum SNR required for
a trigger (it is assumed SNRs below this value are
impossible to observe).

The instruments parameter specifies the instruments upon
whose triggers the SNR distribution is conditional --- the
SNR distribution is conditional on the signal being
recovered by exactly these instruments and no others.

The inst_horiz_mapping parameter is a dictionary mapping
instrument name (e.g., "H1") to horizon distance (arbitrary
units).  For consistency, all instruments in the network
must be listed in inst_horiz_mapping regardless of which
instruments are operating and regardless of which
instruments the probability density is conditional on the
signal being recovered in; instruments that are included in
the network but not operating at the time should be listed
with a horizon distance of 0.

The axes of the PDF correspond to the instruments in
alphabetical order.  The binning used for all axes is set
with the bins parameter.

The n_samples parameter sets the number of iterations for
the internal Monte Carlo sampling loop, and progressbar can
be a glue.text_progress_bar.ProgressBar instance for
verbosity.

Definition at line 601 of file inspiral_extrinsics.py.

def stats.inspiral_extrinsics.SNRPDF.lnP_snrs (   self,
  snrs,
  horizon_distances,
  min_instruments 
)
snrs is an instrument-->SNR mapping containing one entry
for each instrument that sees a signal.  snrs cannot
contain instruments that are not listed in
horizon_distances.

horizon_distances is an instrument-->horizon distance mapping
containing one entry for each instrument in the network.
For instruments that are off set horizon distance to 0.

Definition at line 535 of file inspiral_extrinsics.py.

def stats.inspiral_extrinsics.SNRPDF.quantize_horizon_distances (   self,
  horizon_distances 
)
if two horizon distances, D1 and D2, differ by less than

    | ln(D1 / D2) | <= log_distance_tolerance

then they are considered to be equal for the purpose of
recording horizon distance history, generating joint SNR
PDFs, and so on.  if the smaller of the two is < min_ratio
* the larger then the smaller is treated as though it were
0.

Definition at line 474 of file inspiral_extrinsics.py.

def stats.inspiral_extrinsics.SNRPDF.snr_joint_pdf_keyfunc (   self,
  instruments,
  horizon_distances,
  min_instruments 
)
Internal function defining the key for cache:  two element
tuple, first element is frozen set of instruments for which
this is the PDF, second element is frozen set of
(instrument, horizon distance) pairs for all instruments in
the network.  horizon distances are normalized to fractions
of the largest among them and then the fractions aquantized
to integer powers of a common factor

Definition at line 510 of file inspiral_extrinsics.py.


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