Subversion Repositories wimsdev

Rev

Rev 20 | Rev 4161 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20 Rev 3307
Line 10... Line 10...
10
slib_out=random data of m integers following a multinomial law of parameters  n and p=[p_1,...,p_j] (n is an integer and p_i are positive reals of sum <= 1; if the sum of the p_i is less than 1, 1-sum(p_i) is add to the list.
10
slib_out=random data of m integers following a multinomial law of parameters  n and p=[p_1,...,p_j] (n is an integer and p_i are positive reals of sum <= 1; if the sum of the p_i is less than 1, 1-sum(p_i) is add to the list.
11
 
11
 
12
slib_comment= P(X1=k1,X2=k2,..)=n!/(k1!k2!..)*p1^k1*p2^(k2)... In fact, it is preferable to enter only  n-1  p_i because of the tuncature errors : the last one will be  add.
12
slib_comment= P(X1=k1,X2=k2,..)=n!/(k1!k2!..)*p1^k1*p2^(k2)... In fact, it is preferable to enter only  n-1  p_i because of the tuncature errors : the last one will be  add.
13
 
13
 
14
slib_example=3,6,[1/3,1/3]
14
slib_example=3,6,[1/3,1/3]
-
 
15
!exit
15
 
16
 
16
:proc
17
:proc
17
 
18
 
18
!distribute item $wims_read_parm into slib_M, slib_nn
19
!distribute item $wims_read_parm into slib_M, slib_nn
19
slib_q=!item 3 to -1 of $wims_read_parm
20
slib_q=!item 3 to -1 of $wims_read_parm