RRloc: Location and Scale Modification of A Distribution

Description Usage Arguments Details Value See Also Examples

View source: R/RMmodels.R

Description

RRloc modifies location and scale of a distribution.

Usage

1
RRloc(phi, mu, scale, pow) 

Arguments

phi

distribution RMmodel

mu

location shift

scale

scale modification

pow

argument for internal use only

Details

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

Value

RRloc returns an object of class RMmodel.

See Also

RMmodel, RRdistr, RRgauss.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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)

RandomFields documentation built on Jan. 19, 2022, 1:06 a.m.