aboutsummaryrefslogtreecommitdiff
path: root/src/likelihood.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/likelihood.h')
-rw-r--r--src/likelihood.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/likelihood.h b/src/likelihood.h
index 8ddaf2a..0da7db9 100644
--- a/src/likelihood.h
+++ b/src/likelihood.h
@@ -10,7 +10,13 @@
*
* Note: This must be less than MAX_PE. */
#define MAX_PE_NO_HIT 10
-#define STD_MAX 10
+
+/* To speed things up we quit calculating the probability of a hit when the
+ * ratio between the current probability and the maximum probability is less
+ * than 10**(-MIN_RATIO). So if MIN_RATIO is -10, that means that we ignore
+ * probabilities which are 10 million times less likely than the most probable
+ * value for n. */
+#define MIN_RATIO -10
#define CHARGE_FRACTION 60000.0
#define DARK_RATE 500.0