mx.rnorm
¶
Description¶
Generate nomal distribution with mean and sd.
Example:
mx.set.seed(0)
as.array(mx.runif(2))
# 0.5488135 0.5928446
mx.set.seed(0)
as.array(mx.rnorm(2))
# 2.212206 1.163079
Usage¶
mx.rnorm(shape, mean = 0, sd = 1, ctx = NULL)
Arguments¶
Argument |
Description |
---|---|
|
Dimension, The shape(dimension) of the result. |
|
numeric, The mean of distribution. |
|
numeric, The standard deviations. |
|
optional The context device of the array. mx.ctx.default() will be used in default. |