Le mar. 3 août 2021 à 00:09, Alex Herbert <alex.d.herb...@gmail.com> a écrit :
>
> The PoissonDistribution defines the method:
>
> /**
>  * Calculates the Poisson distribution function using a normal
>  * approximation. The {@code N(mean, sqrt(mean))} distribution is used
>  * to approximate the Poisson distribution. The computation uses
>  * "half-correction" (evaluating the normal distribution function at
>  * {@code x + 0.5}).
>  *
>  * @param x Upper bound, inclusive.
>  * @return the distribution function value calculated using a normal
>  * approximation.
>  */
> public double normalApproximateProbability(int x)  {
>     // Calculate the probability using half-correction.
>     return normal.cumulativeProbability(x + 0.5);
> }
>
> This method does not seem to add value. A user would have to choose to use
> it when they know the approximation is good, typically if the mean is
> large. I would recommend removing it from the API.

+1

>
> Alex

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to