Browse Source

Distributions: Fix Zipf CDF at x=1

pull/197/head
Christoph Ruegg 12 years ago
parent
commit
07237fc703
  1. 2
      src/Numerics/Distributions/Zipf.cs

2
src/Numerics/Distributions/Zipf.cs

@ -270,7 +270,7 @@ namespace MathNet.Numerics.Distributions
/// <returns>the cumulative distribution at location <paramref name="x"/>.</returns>
public double CumulativeDistribution(double x)
{
if (x <= 1)
if (x < 1)
{
return 0.0;
}

Loading…
Cancel
Save