aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-01-13 10:35:08 +0100
committerThomas White <taw@physics.org>2010-01-13 10:35:08 +0100
commit26dc86b5b6624177591909ae3d2c8d7d8bae9159 (patch)
tree8f1eb26472242e1cfcbacff777d631017268a3bd
parent436129c4230233db746a28d8d45f1340519a3c5f (diff)
D'oh
-rw-r--r--src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index cad7ff1b..c22bce71 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -104,7 +104,7 @@ int poisson_noise(double expected)
/* For large values of the mean, we get big problems with arithmetic.
* In such cases, fall back on a Gaussian with the right variance. */
- if ( L > 100.0 ) return fake_poisson_noise(expected);
+ if ( expected > 100.0 ) return fake_poisson_noise(expected);
L = exp(-expected);