⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 invwishirnd.m

📁 马尔科夫链蒙特卡洛模拟的matlab源代码
💻 M
字号:
% INVWISHIRND - Inverse Wishart Random Matrix% Copyright (c) 1998, Harvard University. Full copyright in the file Copyright%%   [IW] = invwishirnd(S,d) %% S = p x p symmetric, postitive definite "scale" matrix % d = "degrees of freedom" parameter%   = "precision" parameter %   (d must be an integer for this routine, see INVWISHRND)%% IW = random matrix from the inverse Wishart distribution%% Note:%   different sources use different parameterizations w.r.t. nu%   this routine uses that of Press and Shigemasu (1989):%   density(IW) is proportional to  %     exp[-.5*trace(S*inv(IW))] / [det(IW) ^ (d/2)].%%   With this density definition:%   mean(IW) = S/(d-2p-2) when d>2p+2,%   mode(IW) = S/d.%% See also: INVWISHRND, WISHRNDfunction [IW] = invwishirnd(S,d) [p,p2] = size(S) ;W = wishirnd(inv(S),d-p-1) ;IW = inv(W) ;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -