vdc: Van der Corput Sequence

Description Usage Arguments Value Author(s) References Examples

View source: R/randomlines.R

Description

This function generates the three dimensional Van der Corput sequence on the half unit Sphere of R^3 - eventually randomly rotated.

Usage

1
vdc(n, rand.rot = FALSE)

Arguments

n

Integer. The length of the sequence.

rand.rot

Logical. Should the sequence be randomly rotated?

Value

A matrix giving the coordinates of the points in the half unit sphere.

Author(s)

Mathieu Ribatet

References

Freulon, X., de Fouquet, C., 1991. Remarques sur la pratique des bandes tournantes a trois dimensions. Cahiers de geostatistique, Fascicule 1, Centre de Geostatistique, Ecole des Mines de Paris, Fontainebleau, pp. 101–117.

Examples

1
vdc(10)

Example output

               [,1]          [,2]       [,3]
 [1,]  1.000000e+00  0.000000e+00 0.00000000
 [2,] -9.428090e-01  1.154608e-16 0.33333333
 [3,]  4.563989e-17  7.453560e-01 0.66666667
 [4,] -1.825596e-16 -9.938080e-01 0.11111111
 [5,]  6.334308e-01  6.334308e-01 0.44444444
 [6,] -4.444444e-01 -4.444444e-01 0.77777778
 [7,] -6.894263e-01  6.894263e-01 0.22222222
 [8,]  5.879447e-01 -5.879447e-01 0.55555556
 [9,]  4.232503e-01  1.753160e-01 0.88888889
[10,] -9.232457e-01 -3.824209e-01 0.03703704

SpatialExtremes documentation built on Sept. 1, 2020, 3:01 a.m.