From 44233320bbb74912740f7b89cde704ef02aa0762 Mon Sep 17 00:00:00 2001 From: Artyom Baranovskiy Date: Mon, 20 May 2013 17:08:18 +0300 Subject: [PATCH] Fix Stable.Sample static method to pass correct params to SampleUnchecked --- src/Numerics/Distributions/Continuous/Stable.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Numerics/Distributions/Continuous/Stable.cs b/src/Numerics/Distributions/Continuous/Stable.cs index ecdf2f0d..a2ea6771 100644 --- a/src/Numerics/Distributions/Continuous/Stable.cs +++ b/src/Numerics/Distributions/Continuous/Stable.cs @@ -518,7 +518,7 @@ namespace MathNet.Numerics.Distributions throw new ArgumentOutOfRangeException(Resources.InvalidDistributionParameters); } - return SampleUnchecked(rnd, location, scale, scale, location); + return SampleUnchecked(rnd, alpha, beta, scale, location); } /// @@ -539,7 +539,7 @@ namespace MathNet.Numerics.Distributions while (true) { - yield return SampleUnchecked(rnd, location, scale, scale, location); + yield return SampleUnchecked(rnd, alpha, beta, scale, location); } } }