|
|
|
@ -317,6 +317,11 @@ namespace MathNet.Numerics.Distributions |
|
|
|
throw new ArgumentException(Resources.InvalidDistributionParameters); |
|
|
|
} |
|
|
|
|
|
|
|
if (freedom > 160.0) |
|
|
|
{ |
|
|
|
return Math.Exp(PDFLn(freedom, x)); |
|
|
|
} |
|
|
|
|
|
|
|
return (Math.Pow(2.0, 1.0 - (freedom/2.0))*Math.Pow(x, freedom - 1.0)*Math.Exp(-x*x/2.0))/SpecialFunctions.Gamma(freedom/2.0); |
|
|
|
} |
|
|
|
|
|
|
|
@ -351,7 +356,7 @@ namespace MathNet.Numerics.Distributions |
|
|
|
throw new ArgumentException(Resources.InvalidDistributionParameters); |
|
|
|
} |
|
|
|
|
|
|
|
return SpecialFunctions.GammaLowerIncomplete(freedom/2.0, x*x/2.0)/SpecialFunctions.Gamma(freedom/2.0); |
|
|
|
return SpecialFunctions.GammaLowerRegularized(freedom/2.0, x*x/2.0); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|