Browse Source

Fix Stable.Sample static method to pass correct params to SampleUnchecked

v2
Artyom Baranovskiy 14 years ago
parent
commit
44233320bb
  1. 4
      src/Numerics/Distributions/Continuous/Stable.cs

4
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);
}
/// <summary>
@ -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);
}
}
}

Loading…
Cancel
Save