Browse Source

Merge pull request #122 from ArtyomBaranovskiy/FixStableDistributionSampling

Distributions: Incorrect values are passed to sampleUnchecked inside Stable.Sample static methods
v2
Christoph Ruegg 14 years ago
parent
commit
d120f048dc
  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