# NOT RUN {
set.seed(8675309)
# NOTE: following inverts rstream::rstream.sample using stats::qexp
vexp(3, rate = 2)
set.seed(8675309)
# NOTE: following inverts rstream::rstream.sample using stats::qexp
vexp(3, 2, stream = 1)
vexp(3, 2, stream = 2)
set.seed(8675309)
# NOTE: following inverts rstream::rstream.sample using stats::qexp
vexp(1, 2, stream = 1)
vexp(1, 2, stream = 2)
vexp(1, 2, stream = 1)
vexp(1, 2, stream = 2)
vexp(1, 2, stream = 1)
vexp(1, 2, stream = 2)
set.seed(8675309)
variates <- vexp(1000, 2, stream = 1)
set.seed(8675309)
variates <- vexp(1000, 2, stream = 1, antithetic = TRUE)
set.seed(8675309)
# NOTE: Default functions for M/M/1 ssq(), ignoring fixed n
interarrivals <- vexp(1000, rate = 1, stream = 1)
services <- vexp(1000, rate = 10/9, stream = 2)
# }
Run the code above in your browser using DataLab