<h2>org.das2.math.PoissonDistribution</h2><p>Class for generating numbers from a Poisson distribution.</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 ) &rarr; int

<p>This function generates a random variate with the poisson distribution.

 Uses inversion by chop-down method for L &lt; 17, and ratio-of-uniforms
 method for L &ge; 17.

 For L &lt; 1.E-6 numerical inaccuracy is avoided by direct calculation.
 For L &gt; 2E9 too big--throws IllegalArgumentException</p>

<h3>Parameters</h3>
L - a double
<br>
random - a Random

<h3>Returns:</h3>
an int

<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/math/PoissonDistribution.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/math/PoissonDistribution.html#poisson">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/math/PoissonDistribution.java">[view source]</a>
<br>
<br>