}
private static void doTestMap(float rate, float observation, float probability) {
float tolerance = .00001f;
PoissonPDF pdf = new PoissonPDF(rate);
float result = pdf.map(new float[]{observation});
TestUtil.assertClose(probability, result, tolerance);
}
public void testSample() {
doTestSample(1);