Rohit Pandey
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
src/Numerics/Distributions/Dirichlet.cs
|
|
|
@ -227,8 +227,8 @@ namespace MathNet.Numerics.Distributions |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
var num = _alpha.Sum(t => (t - 1)*SpecialFunctions.DiGamma(t)); |
|
|
|
return SpecialFunctions.GammaLn(AlphaSum) + ((AlphaSum - Dimension)*SpecialFunctions.DiGamma(AlphaSum)) - num; |
|
|
|
var num = _alpha.Sum(t => (t - 1)*SpecialFunctions.DiGamma(t) - SpecialFunctions.GammaLn(t)); |
|
|
|
return -SpecialFunctions.GammaLn(AlphaSum) + ((AlphaSum - Dimension)*SpecialFunctions.DiGamma(AlphaSum)) - num; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|