Library: | distribs |
See also: | pdfmixexp cdfmixexp |
Quantlet: | rndmixexp | |
Description: | generates a vector of pseudo random variables with mixture of exponentials distributions. |
Usage: | y = rndmixexp (n, m, alpha, beta1, beta2) | |
Input: | ||
n | integer, number of rows | |
m | integer, number of columns | |
alpha | scalar, parameter of mixture of exponentials distribution | |
beta1 | scalar, parameter of mixture of exponentials distribution | |
beta2 | scalar, parameter of mixture of exponentials distribution | |
Output: | ||
y | n x m matrix, pseudo random numbers |
library("xplore") library("distribs") randomize(100) rndmixexp(3,2,0.2,2,1)
Contents of y [1,] 3.141 0.10592 [2,] 1.7668 1.3422 [3,] 2.7053 0.52148