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

📄 mygamrnd.m

📁 Continuous Profile Models (CPM) Matlab Toolbox.
💻 M
字号:
% function x = mygamrnd(A,B,M,N)%% Generate random samples from a gamma distribution% using Rubin notation%% Matlab parameterization relates to Rubin notation as follows:% uses b_matlab = 1/B_rubin%% Expectation(gaminvrnd) = B/(A-1)% % See also gaminvrnd gamrnd, gamcdf, gamfit, gaminv, gamlike, gampdf, gamstat, random.function y = mygamrnd(A,B,M,N)%% to make it match Rubin book and standard notationB=1/B;if exist('M','var')    y = gamrnd(A,B,M,N);else    y = gamrnd(A,B); %expectation(y)=A*Bendreturn;

⌨️ 快捷键说明

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