?? poisson.m
字號(hào):
function n = poisson(navg)% DESCRIPTION n = mrequest(navg)% an aproximation of a poisson distribution% TRY poisson(10),poisson(0:10),poisson(ones(2,2,2))% by Magnus Almgren 000803siz = size(navg);navg = shiftdim(navg,-1); % free first dimension by shifting them to the rightveclength = round(max(100, 10*max(navg(:)))); n = sum(mplus(rand([veclength siz]),-navg/veclength) < 0,1); % make a realisationn = shiftdim(n,1); % move back again
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -