Log Multivariate Gamma Function
Returns the log of the multivariate gamma function.
lmgamma(y, dimension)
y |
The function argument, which must be a positive scalar. |
dimension |
The dimension of the multivariate gamma function, which must be an integer >= 1. |
The multivariate gamma function is
Gamma(y, p) = pi^(p * (p-1)/4) prod(gamma(y + (1-(1:p))/2)).
The multivariate gamma function shows up as part of the normalizing constant for the Wishart and inverse Wishart distributions.
Returns the log of the multivariate gamma function. Note that
this function is not vectorized. Both y
and dimension
must be scalars, and the return value is a scalar.
Steven L. Scott steve.the.bayesian@gmail.com
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.