From 07237fc7037e5fe1df2da533b2cf22464d2f8de6 Mon Sep 17 00:00:00 2001 From: Christoph Ruegg Date: Sun, 9 Feb 2014 16:17:14 +0100 Subject: [PATCH] Distributions: Fix Zipf CDF at x=1 --- src/Numerics/Distributions/Zipf.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Numerics/Distributions/Zipf.cs b/src/Numerics/Distributions/Zipf.cs index 5f1aa397..0784d672 100644 --- a/src/Numerics/Distributions/Zipf.cs +++ b/src/Numerics/Distributions/Zipf.cs @@ -270,7 +270,7 @@ namespace MathNet.Numerics.Distributions /// the cumulative distribution at location . public double CumulativeDistribution(double x) { - if (x <= 1) + if (x < 1) { return 0.0; }