Learn R Programming

RandomFields (version 3.0.32)

RRgauss: Random scaling used with balls

Description

RRgauss defines the d-dimensional vector of independent Gaussian random variables.

Usage

RRgauss(mu, sd, log)

Arguments

mu, sd, log
see Normal. Here the components can be vectors, leading to multivariate distibution with independent components

Value

Details

It has the same effect as RRdistr(norm(mu=mu, sd=sd, log=log))

See Also

RMmodel, RRdistr, RRunif.

Do not mix up with RMgauss or RPgauss.

Examples

Run this code
RFoptions(seed=0) ## *ANY* simulation will have the random seed 0; set
##                   RFoptions(seed=NA) to make them all random again
r <- RFrdistr(RRgauss(mu=c(1,5)), n=1000, dim=2)
plot(r[1,], r[2, ])
FinalizeExample()

Run the code above in your browser using DataLab