Learn R Programming

RandomFields (version 3.0.10)

RRloc: Random scaling used with balls

Description

RRloc modifies location and scale of a distribution.

Usage

RRloc(phi, mu, scale)

Arguments

phi
distribution RMmodel.
mu
location shift
scale
scale modification

Value

Details

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

See Also

RMmodel, RRdistr, RRgauss,

Examples

Run this code
RFoptions(seed=0)
hist(RFrdistr(RRspherical(balldim=2), n=1000), 50)
hist(RFrdistr(RRloc(mu=3, RRspherical(balldim=2)), n=1000), 50)
RFoptions(seed=NA)

Run the code above in your browser using DataLab