|
|
@ -41,18 +41,15 @@ namespace MathNet.Numerics.Distributions |
|
|
/// <a href="http://en.wikipedia.org/wiki/Gamma_distribution">Wikipedia - Gamma distribution</a>.
|
|
|
/// <a href="http://en.wikipedia.org/wiki/Gamma_distribution">Wikipedia - Gamma distribution</a>.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <remarks>
|
|
|
/// <remarks>
|
|
|
/// <para>The Gamma distribution is parametrized by a shape and inverse scale parameter. When we want
|
|
|
/// The Gamma distribution is parametrized by a shape and inverse scale parameter. When we want
|
|
|
/// to specify a Gamma distribution which is a point distribution we set the shape parameter to be the
|
|
|
/// to specify a Gamma distribution which is a point distribution we set the shape parameter to be the
|
|
|
/// location of the point distribution and the inverse scale as positive infinity. The distribution
|
|
|
/// location of the point distribution and the inverse scale as positive infinity. The distribution
|
|
|
/// with shape and inverse scale both zero is undefined.</para>
|
|
|
/// with shape and inverse scale both zero is undefined.
|
|
|
/// <para> Random number generation for the Gamma distribution is based on the algorithm in:
|
|
|
///
|
|
|
|
|
|
/// Random number generation for the Gamma distribution is based on the algorithm in:
|
|
|
/// "A Simple Method for Generating Gamma Variables" - Marsaglia & Tsang
|
|
|
/// "A Simple Method for Generating Gamma Variables" - Marsaglia & Tsang
|
|
|
/// ACM Transactions on Mathematical Software, Vol. 26, No. 3, September 2000, Pages 363–372.</para>
|
|
|
/// ACM Transactions on Mathematical Software, Vol. 26, No. 3, September 2000, Pages 363–372.
|
|
|
/// <para>The distribution will use the <see cref="System.Random"/> by default.
|
|
|
/// </remarks>
|
|
|
/// Users can get/set the random number generator by using the <see cref="RandomSource"/> property.</para>
|
|
|
|
|
|
/// <para>The statistics classes will check all the incoming parameters whether they are in the allowed
|
|
|
|
|
|
/// range. This might involve heavy computation. Optionally, by setting Control.CheckDistributionParameters
|
|
|
|
|
|
/// to <c>false</c>, all parameter checks can be turned off.</para></remarks>
|
|
|
|
|
|
public class Gamma : IContinuousDistribution |
|
|
public class Gamma : IContinuousDistribution |
|
|
{ |
|
|
{ |
|
|
System.Random _random; |
|
|
System.Random _random; |
|
|
|