Learn R Programming

pomp (version 0.39-3)

sobol: Sobol' low-discrepancy sequence

Description

Generate a data-frame containing a Sobol' low-discrepancy sequence.

Usage

sobol(vars, n)
sobolDesign(lower, upper, nseq)
sobol.design(lower, upper, nseq)

Arguments

vars
Named list of ranges of variables.
lower,upper
named numeric vectors giving the lower and upper bounds of the ranges, respectively.
n,nseq
Number of vectors requested.

Value

  • sobolReturns a data frame with n observations of the variables in vars.
  • sobolDesignReturns a data frame with nseq observations of the variables over the range specified. The equivalent form sobol.design is now deprecated and will be removed in a future release.

References

W. H. Press, S. A. Teukolsky, W. T. Vetterling, & B. P. Flannery, Numerical Recipes in C, Cambridge University Press, 1992

See Also

sliceDesign, profileDesign

Examples

Run this code
plot(sobol(vars=list(a=c(0,1),b=c(100,200)),100))
plot(sobolDesign(lower=c(a=0,b=100),upper=c(b=200,a=1),100))

Run the code above in your browser using DataLab