Subversion Repositories wimsdev

Rev

Rev 4455 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4455 Rev 5903
Line 4... Line 4...
4
 
4
 
5
slib_out=Random data of <tt>m</tt> integers following a multinomial law of parameters \
5
slib_out=Random data of <span class="tt">m</span> integers following a multinomial law of parameters \
6
<tt>n</tt> and p=[p1,...,pj] (n is an integer and pi are positive reals of sum <= 1; \
6
<span class="tt">n</span> and p=[p1,...,pj] (n is an integer and pi are positive reals of sum <= 1; \
7
if the sum of the pi is less than 1, 1-sum(pi) is add to the list.
7
if the sum of the pi is less than 1, 1-sum(pi) is add to the list.
8
 
8
 
9
slib_comment= If p1+...+pj=1,\
9
slib_comment= If p1+...+pj=1,\
10
 P(X1=k1,X2=k2,..,Xj=kj)=(p1)^k1*...*(pj)^kj*n!/(k1!...kj!)\
10
 P(X1=k1,X2=k2,..,Xj=kj)=(p1)^k1*...*(pj)^kj*n!/(k1!...kj!)\
11
 for all ki so that k1+...+kj=n
11
 for all ki so that k1+...+kj=n