rxnorm {rxode2random} | R Documentation |
Simulate random normal variable from threefry/vandercorput generator
Description
Simulate random normal variable from threefry/vandercorput generator
Usage
rxnorm(mean = 0, sd = 1, n = 1L, ncores = 1L)
Arguments
mean |
vector of means. |
sd |
vector of standard deviations. |
n |
number of observations |
ncores |
Number of cores for the simulation
|
Value
normal random number deviates
Examples
## Use threefry engine
rxnorm(n = 10) # with rxnorm you have to explicitly state n
rxnorm(n = 10, ncores = 2) # You can parallelize the simulation using openMP
rxnorm(2, 3) ## The first 2 arguments are the mean and standard deviation
[Package rxode2random version 2.1.1 Index]