Learn R Programming

RandomFields (version 3.0.10)

RRspherical: Random scaling used with balls

Description

This model describes the radius of a $d$ ball obtained by the intersection of a balldim-dimensional ball with diameter 1 with a $d$-dimensional hyperplane that has uniform distance from the center.

Usage

RRspherical(spacedim, balldim)

Arguments

spacedim
dimension $d$ of the hyperplane; defaults to 1.
balldim
the dimension of the ball

Value

See Also

RMmodel, RMball,

Examples

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

Run the code above in your browser using DataLab