/// <summary>
/// Gets the cumulative distribution function (cdf) for
/// this distribution evaluated at point <c>k</c>.
/// </summary>
///
/// <param name="x">A single point in the distribution range.</param>
///
/// <remarks>
/// The Cumulative Distribution Function (CDF) describes the cumulative
/// probability that a given value or any value smaller than it will occur.
/// </remarks>
///
protected internal override double InnerDistributionFunction(double x)
{
if (this.exact)
{
return(exactMethod(x, table));
}
if (Correction == ContinuityCorrection.Midpoint)
{
if (x > Mean)
{
x = x - 0.5;
}
else
{
x = x + 0.5;
}
}
else if (Correction == ContinuityCorrection.KeepInside)
{
x = x + 0.5;
}
return(approximation.DistributionFunction(x));
}