Learn R Programming

RandomFields (version 3.1.36)

RRloc: Random scaling used with balls

Description

RRloc modifies location and scale of a distribution.

Usage

RRloc(phi, mu, scale, pow)

Arguments

phi
distribution RMmodel.
mu
location shift
scale
scale modification
pow
argument for internal use only

Value

RRloc returns an object of class RMmodel

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) ## *ANY* simulation will have the random seed 0; set
##                   RFoptions(seed=NA) to make them all random again

## empirical density of the distribution 'RRspheric'
model <- RRspheric(balldim=2)
hist(RFrdistr(model, n=1000), 50)

## empirical density of the distribution 'RRspheric', shifted by 3
model <- RRloc(mu=3, RRspheric(balldim=2))
hist(RFrdistr(model, n=1000), 50)

Run the code above in your browser using DataLab