Learn R Programming

LatticeDesign (version 3.0-1)

RSPD: Rotated sphere packing designs

Description

Generates a rotated sphere packing design.

Usage

RSPD(p=2,n,rotation="magic",w=100)

Value

The value returned from the function is a list containing the following components:

Design

The generated design.

generator

The generator matrix.

rotation

The rotation matrix.

delta

The value of parameter delta.

Theta

The value of parameter Theta.

l

The value of parameter l.

FillDistance

The fill distance of the design for the nonboundary region.

Arguments

p

Number of dimensions, must be an integer greater than one.

n

Number of points, must be a positive integer.

rotation

Optional, whether to use the magic rotation matrix (for p=2, recommended) or random rotation matrices.

w

Number of rotation matrices to try, fixed to 1 when p=2 and rotation="magic".

Details

This function generates a rotated sphere packing design.

References

He, Xu (2017). "Rotated sphere packing designs", Journal of the American Statistical Association, 112(520): 1612-1622.

Examples

Run this code
RSPD(p=2,n=50,rotation="magic",w=100)

Run the code above in your browser using DataLab