fun.gen.qrn {GLDEX}R Documentation

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")

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".

Value

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

Author(s)

Steve Su

Examples

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

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

[Package GLDEX version 2.0.0.9.3 Index]