Learn R Programming

GLDEX (version 2.0.0.9.3)

fun.gen.qrn: Finds the low discrepancy quasi random numbers

Description

This function calls the runif.sobol, runif.sobol.owen and runif.halton essentially from the spacefillr package.

Usage

fun.gen.qrn(n, dimension, scrambling, FUN = "runif.sobol")

Value

A vector of values if dimension=1, otherwise a matrix of values between 0 and 1.

Arguments

n

Number to generate.

dimension

Number of dimensions.

scrambling

seed used, or leap as in the case of QUnif.

FUN

This can be "runif.sobol" (default), "runif.sobol.owen", "runif.halton" or "QUnif".

Author

Steve Su

Examples

Run this code
fun.gen.qrn(1000,5,3,"runif.sobol")

fun.gen.qrn(1000,5,409,"QUnif")

Run the code above in your browser using DataLab