<h2>org.das2.qds.math.PoissonDistribution</h2><p>PoissonDistribution generates numbers from the Poisson distribution. Adapted from stocc.cpp. 2018-08-28. Made thread safe, use in Jython scripts will be broken.</p> <h2>PoissonDistribution( )</h2> <p></p> <hr> <a name="poisson"></a> <h2>poisson</h2> poisson( double L, <a href='https://docs.oracle.com/javase/8/docs/api/java/util/Random.html'>java.util.Random</a> random ) → int <p>This function generates a random variate with the Poisson distribution. Uses inversion by chop-down method for L < 17, and ratio-of-uniforms method for L >= 17. For L < 1.E-6 numerical inaccuracy is avoided by direct calculation. For L > 2E9 too big--throws IllegalArgumentException Note this was a static method before 2018-08-28 (v2018a_8), so Jython calls should be PoissonDistribution().poisson().</p> <h3>Parameters</h3> L - the real value <br> random - a random number source <h3>Returns:</h3> the integer value. <br><br> <a href="https://github.com/autoplot/dev/search?q=poisson&unscoped_q=poisson">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/qds/math/PoissonDistribution.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/qds/math/PoissonDistribution.html#poisson">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/QDataSet/src/org/das2/qds/math/PoissonDistribution.java#l176">[view source]</a> <br> <br>