Data Structures | |
class | EfficiencyData |
class | RateData |
class | RateVsThresholdData |
Variables | |
PosInf = float("+inf") | |
NegInf = float("-inf") | |
options | |
filenames = sorted(filename for g in options.background_glob for filename in glob.glob(g)) | |
file | |
injections_glob | |
live_time_program | |
tmp_path | |
tmp_space | |
verbose | |
confidence_contour_slope | |
def | rate_vs_threshold_data = measure_threshold(filenames, options.zero_lag_survivors, live_time_program = options.live_time_program, tmp_path = options.tmp_space, open_box = options.open_box, verbose = options.verbose) |
zero_lag_live_time | |
amplitude_threshold | |
mu_0primed | |
def | efficiency_data = measure_efficiency(filenames, rate_vs_threshold_data.amplitude_threshold, live_time_program = options.live_time_program, upper_limit_scale = options.upper_limit_scale, tmp_path = options.tmp_space, verbose = options.verbose) |
def | rate_data = rate_upper_limit(efficiency_data, rate_vs_threshold_data.mu_0primed, rate_vs_threshold_data.zero_lag_live_time, options.upper_limit_confidence) |
def lalburst_power_final.parse_command_line | ( | ) |
Definition at line 107 of file lalburst_power_final.py.
def lalburst_power_final.bb_id_likelihood_confidence_background | ( | database | ) |
Definition at line 156 of file lalburst_power_final.py.
def lalburst_power_final.create_sim_coinc_map_view | ( | connection | ) |
Definition at line 187 of file lalburst_power_final.py.
def lalburst_power_final.dump_confidence_likelihood_scatter_data | ( | globs, | |
live_time_program = "lalapps_power" , |
|||
tmp_path = None , |
|||
verbose = False |
|||
) |
Definition at line 235 of file lalburst_power_final.py.
def lalburst_power_final.plot_confidence_likelihood_scatter_data | ( | slope, | |
verbose = False |
|||
) |
Definition at line 344 of file lalburst_power_final.py.
def lalburst_power_final.measure_threshold | ( | filenames, | |
n_survivors, | |||
live_time_program = "lalapps_power" , |
|||
tmp_path = None , |
|||
open_box = False , |
|||
verbose = False |
|||
) |
Definition at line 589 of file lalburst_power_final.py.
def lalburst_power_final.print_rate_vs_threshold_data | ( | rate_vs_threshold_data, | |
confidence_contour_slope | |||
) |
Definition at line 645 of file lalburst_power_final.py.
def lalburst_power_final.plot_rate_vs_threshold | ( | data | ) |
Input is a RateVsThresholdData instance.
Output is a matplotlib Figure instance.
Definition at line 676 of file lalburst_power_final.py.
def lalburst_power_final.diagnostic_plot | ( | z, | |
bins, | |||
title, | |||
ylabel, | |||
filename | |||
) |
Definition at line 777 of file lalburst_power_final.py.
def lalburst_power_final.measure_efficiency | ( | filenames, | |
threshold, | |||
live_time_program = "lalapps_power" , |
|||
upper_limit_scale = "E" , |
|||
tmp_path = None , |
|||
verbose = False |
|||
) |
Definition at line 969 of file lalburst_power_final.py.
def lalburst_power_final.plot_efficiency_data | ( | efficiency_data | ) |
Definition at line 1029 of file lalburst_power_final.py.
def lalburst_power_final.mu_p_epsilon | ( | xi, | |
p | |||
) |
Given the background correction factor $\xi$, and the upper limit confidence p, solve.
$p = 1 - \ee^{-\mu_{p} \epsilon} (1 + \xi \mu_{p} \epsilon)$
for ($\mu_{p} \epsilon$), the product of the foreground rate upper limit times the efficiency. Note that this product is always well defined by this relation (i.e., even when the efficiency is 0).
Definition at line 1071 of file lalburst_power_final.py.
def lalburst_power_final.rate_upper_limit | ( | efficiency_data, | |
mu_0primed, | |||
zero_lag_live_time, | |||
p | |||
) |
Definition at line 1091 of file lalburst_power_final.py.
def lalburst_power_final.plot_rate_upper_limit | ( | rate_data | ) |
Definition at line 1153 of file lalburst_power_final.py.
def lalburst_power_final.coinc_detection_statistic | ( | likelihood, | |
confidence, | |||
m = options.confidence_contour_slope |
|||
) |
Definition at line 1229 of file lalburst_power_final.py.
lalburst_power_final.PosInf = float("+inf") |
Definition at line 71 of file lalburst_power_final.py.
lalburst_power_final.NegInf = float("-inf") |
Definition at line 72 of file lalburst_power_final.py.
lalburst_power_final.options |
Definition at line 1216 of file lalburst_power_final.py.
lalburst_power_final.filenames = sorted(filename for g in options.background_glob for filename in glob.glob(g)) |
Definition at line 1216 of file lalburst_power_final.py.
lalburst_power_final.file |
Definition at line 1269 of file lalburst_power_final.py.
lalburst_power_final.injections_glob |
Definition at line 1271 of file lalburst_power_final.py.
lalburst_power_final.live_time_program |
Definition at line 1271 of file lalburst_power_final.py.
lalburst_power_final.tmp_path |
Definition at line 1271 of file lalburst_power_final.py.
lalburst_power_final.tmp_space |
Definition at line 1271 of file lalburst_power_final.py.
lalburst_power_final.verbose |
Definition at line 1271 of file lalburst_power_final.py.
lalburst_power_final.confidence_contour_slope |
Definition at line 1280 of file lalburst_power_final.py.
lalburst_power_final.rate_vs_threshold_data = measure_threshold(filenames, options.zero_lag_survivors, live_time_program = options.live_time_program, tmp_path = options.tmp_space, open_box = options.open_box, verbose = options.verbose) |
Definition at line 1305 of file lalburst_power_final.py.
lalburst_power_final.zero_lag_live_time |
Definition at line 1311 of file lalburst_power_final.py.
lalburst_power_final.amplitude_threshold |
Definition at line 1312 of file lalburst_power_final.py.
lalburst_power_final.mu_0primed |
Definition at line 1313 of file lalburst_power_final.py.
def lalburst_power_final.efficiency_data = measure_efficiency(filenames, rate_vs_threshold_data.amplitude_threshold, live_time_program = options.live_time_program, upper_limit_scale = options.upper_limit_scale, tmp_path = options.tmp_space, verbose = options.verbose) |
Definition at line 1334 of file lalburst_power_final.py.
def lalburst_power_final.rate_data = rate_upper_limit(efficiency_data, rate_vs_threshold_data.mu_0primed, rate_vs_threshold_data.zero_lag_live_time, options.upper_limit_confidence) |
Definition at line 1355 of file lalburst_power_final.py.