GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — SsVGMM/logMvGamma.m at master · fandulu/SsVGMM Expand file tree/ Copy pathlogMvGamma.mMore file actions 16 lines (16 loc) · 622 Bytes / Copy pathlogMvGamma.mFile metadata and controls16 lines (16 loc) · 622 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 function y = logMvGamma(x,d) % Compute logarithm multivariate Gamma function % which is used in the probability density function of the Wishart and inverse Wishart distributions. % Gamma_d(x) = pi^(d(d-1)/4) \prod_(j=1)^d Gamma(x+(1-j)/2) % log(Gamma_d(x)) = d(d-1)/4 log(pi) + \sum_(j=1)^d log(Gamma(x+(1-j)/2)) % Input: % x: m x n data matrix % d: dimension % Output: % y: m x n logarithm multivariate Gamma % Written by Michael Chen ([email protected]). s = size(x); x = reshape(x,1,prod(s)); x = bsxfun(@plus,repmat(x,d,1),(1-(1:d)')/2); y = d*(d-1)/4*log(pi)+sum(gammaln(x),1); y = reshape(y,s); |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |