Example:
randchisquare(5) returns a positive real number from the Chi-Square distribution with 5 degrees of
freedom
randexp
Given a positive real number, returns a random real number according to the exponential distribution with
real a>0.
randexp(Real)
randsher
Returns a random number from the F-distribution with numerator n and denominator d degrees of freedom.
randfisher(n, d)
Example:
randfisher(5, 2) returns a real number from the F-distribution with a numerator 5 degrees of
freedom and denominator 2 degrees of freedom
randgeometric
Returns a random number from the geometric distribution with probability of success p.
randgeometric(p)
Example:
randgeometric(0.4) returns a positive integer from the geometric distribution with probability of
success 0.4
randperm
Given a positive integer, returns a random permutation of [0,1,2,...,n–1].
randperm(Intg(n))
Example:
randperm(4) returns a random permutation of the elements of the vector [0 1 2 3]
randpoisson
Returns a random number from the Poisson distribution, given parameter k.
randpoisson(k)
Example:
randpoisson(5.4)
randstudent
Returns a random number from the Student's t-distribution with n degrees of freedom.
randstudent(n)
Example:
Ctlg menu 453
Komentarze do niniejszej Instrukcji