From 14cf807251b34e616d6e2e1bc9b7a592d76be01d Mon Sep 17 00:00:00 2001
From: "chad.hanna" <crh184@psu.edu>
Date: Mon, 3 Dec 2018 16:13:36 -0800
Subject: [PATCH] inspiral_lr.py: add a single detector penalty of -5 for the
 log LR

---
 gstlal-inspiral/python/stats/inspiral_lr.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gstlal-inspiral/python/stats/inspiral_lr.py b/gstlal-inspiral/python/stats/inspiral_lr.py
index 58f9ceabd7..b9b6caaa8b 100644
--- a/gstlal-inspiral/python/stats/inspiral_lr.py
+++ b/gstlal-inspiral/python/stats/inspiral_lr.py
@@ -357,6 +357,12 @@ class LnSignalDensity(LnLRDensity):
 		except ValueError:
 			return NegInf
 
+		# FIXME NOTE
+		# Here we put in a penalty for single detector triggers.
+		# Motivated sort of by the coincidence probability.
+		if len(snrs) == 1:
+			lnP -= 5
+
 		# evaluate population model
 		lnP += self.population_model.lnP_template_signal(template_id, max(snrs.values()))
 
-- 
GitLab