# NOT RUN {
set.seed(8675309)
# NOTE: following inverts rstream::rstream.sample using stats::qcauchy
vcauchy(3, location = 3, scale = 1)
set.seed(8675309)
# NOTE: following inverts rstream::rstream.sample using stats::qcauchy
vcauchy(3, 0, 3, stream = 1)
vcauchy(3, 0, 3, stream = 2)
set.seed(8675309)
# NOTE: following inverts rstream::rstream.sample using stats::qcauchy
vcauchy(1, 0, 3, stream = 1)
vcauchy(1, 0, 3, stream = 2)
vcauchy(1, 0, 3, stream = 1)
vcauchy(1, 0, 3, stream = 2)
vcauchy(1, 0, 3, stream = 1)
vcauchy(1, 0, 3, stream = 2)
set.seed(8675309)
variates <- vcauchy(1000, 0, 3, stream = 1)
set.seed(8675309)
variates <- vcauchy(1000, 0, 3, stream = 1, antithetic = TRUE)
# }
Run the code above in your browser using DataLab