From 432daf69bf7268e8a7f2af0ccc112610ac02e057 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sat, 26 Sep 2020 21:39:10 +0200 Subject: [PATCH] Fixed shape access --- FastRng/Double/Distributions/Gamma.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FastRng/Double/Distributions/Gamma.cs b/FastRng/Double/Distributions/Gamma.cs index f42d30f..ffd0c0f 100644 --- a/FastRng/Double/Distributions/Gamma.cs +++ b/FastRng/Double/Distributions/Gamma.cs @@ -35,9 +35,9 @@ namespace FastRng.Double.Distributions // by George Marsaglia and Wai Wan Tsang. ACM Transactions on Mathematical Software // Vol 26, No 3, September 2000, pages 363-372. - if (shape >= 1.0) + if (this.Shape >= 1.0) { - var d = shape - 1.0 / 3.0; + var d = this.Shape - 1.0 / 3.0; var c = 1.0 / Math.Sqrt(9.0 * d); while(true) {