Learn R Programming

vipor (version 0.4.7)

vanDerCorput: Generate van der Corput sequences

Description

Generates the first (or an arbitrary offset) n elements of the van der Corput low-discrepancy sequence for a given base

Usage

vanDerCorput(n, base = 2, start = 1)

Value

a vector of length n with values ranging between 0 and 1

Arguments

n

the first n elements of the van der Corput sequence

base

the base to use for calculating the van der Corput sequence

start

start at this position in the sequence

References

https://en.wikipedia.org/wiki/Van_der_Corput_sequence

Examples

Run this code
vanDerCorput(100)

Run the code above in your browser using DataLab