matlab Netlab库

源代码在线查看: matrix_t_pdf.m

软件大小: 84 K
上传用户: dingjuan_01
关键词: matlab Netlab
下载地址: 免注册下载 普通下载 VIP

相关代码

				function p = matrix_T_pdf(A, M, V, K, n)				% MATRIX_T_PDF Evaluate the density of a matrix under a Matrix-T distribution				% p = matrix_T_pdf(A, M, V, K, n)								% See "Bayesian Linear Regression", T. Minka, MIT Tech Report, 2001								[d m] = size(K);				is = 1:d;				c1 = prod(gamma((n+1-is)/2)) / prod(gamma((n-m+1-is)/2));				c2 = det(K)^(d/2) / det(pi*V)^(m/2); %% pi or 2pi?				p = c1 * c2 * det((A-M)'*inv(V)*(A-M)*K + eye(m))^(-n/2);											

相关资源