最近有关Matlab​数理统计的高手是不是​都度假去了。

最近有关Matlab数理统计的高手是不是都度假去了、找高手没那么容易了、、之前发的帖子没人援助:'(:'(:'(
有谁对gamma分布比较熟悉,孰能介绍 解释下、、、、、
Description
R = gamrnd(A,B) generates random numbers from the gamma distribution with shape parameters in A and scale parameters in B. A and B can be vectors, matrices, or multidimensional arrays that all have the same size. A scalar input for A or B is expanded to a constant array with the same dimensions as the other input.
R = gamrnd(A,B,m,n,...) or R = gamrnd(A,B,[m,n,...]) generates an m-by-n-by-... array containing random numbers from the gamma distribution with parameters A and B. A and B can each be scalars or arrays of the same size as R.
Examples
n1 = gamrnd(1:5,6:10)
n1 =
9.1132 12.8431 24.8025 38.5960 106.4164
n2 = gamrnd(5,10,[1 5])
n2 =
30.9486 33.5667 33.6837 55.2014 46.8265
n3 = gamrnd(2:6,3,1,5)
n3 =
12.8715 11.3068 3.0982 15.6012 21.6739
尤其是这几个例子 看不懂 ?????? 哪位大虾度假回来了 捎带手给解释下、、、
for instance n1 = gamrnd(1:5,6:10) ????若A,B都是向量 比如 1:5 6:10 那A,B是不是一一对应的关系产生gamma随机数 (1对应6 2对应7 …… 等) 是不是我这样理解的。。。。。
忘大虾给个详细解释!!!!

Réponses (0)

Catégories

Tags

Question posée :

le 22 Nov 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!