From 9e8cfb420e194b61d502bf1a14dec8dd79d8da23 Mon Sep 17 00:00:00 2001 From: Richard Reeve Date: Fri, 31 Jul 2015 16:50:08 +0100 Subject: [PATCH] Add tests for Poisson(0.0) distribution. --- test/discrete_test.json | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/test/discrete_test.json b/test/discrete_test.json index bb5a65b21..9f1d9447e 100644 --- a/test/discrete_test.json +++ b/test/discrete_test.json @@ -1375,6 +1375,33 @@ "var": 1.0 } ], + [ + "Poisson(0.0)", + { + "dtype": "Poisson", + "entropy": 0.0, + "maximum": 0, + "mean": 0.0, + "median": 0.0, + "minimum": 0, + "params": { + "rate": 0.0 + }, + "points": [ + { + "cdf": 1.0, + "logpdf": 0.0, + "x": 0 + } + ], + "q10": 0.0, + "q25": 0.0, + "q50": 0.0, + "q75": 0.0, + "q90": 0.0, + "var": 0.0 + } + ], [ "Poisson(0.5)", {