Learn R Programming

mtk (version 1.0)

RandLHS: The RandLHS Method

Description

A mtk compliant implementation of the method for drawing Random Latin Hypercube Design.

Arguments

Usage

  • mtkRandLHSDesigner(listParameters = NULL)
  • mtkNativeDesigner(design="RandLHS", information=NULL)

Parameters used to manage the method

size:
The number of partitions (simulations or design points).
preserveDraw:
logical (default FALSE). Ensures that two subsequent draws with the same n, but one with k and one with m variables (k

Details

  1. The mtk implementation uses the randomLHS function of the package lhs. For further details on the arguments and the behavior, see help(randomLHS, lhs).
  2. The implementation of the RandLHS method includes the class mtkRandLHSDesigner to manage the sampling task and the class mtkRandLHSDesignerResult to manage the results produced by the sampling process.

References

Stein, M. (1987) Large Sample Properties of Simulations Using Latin Hypercube Sampling. Technometrics. 29, 143–151.

See Also

help(randomLHS, lhs)

Examples

Run this code
# uses the RandLHS method 
## Random Latin Hypercude draws for the "Ishigami" model 

#  Example I: by using the class constructors: mtkRandLHSDesigner()

#	Generate the factors
		data(Ishigami.factors)
		
# 	Build the processes and workflow:

#   1) the design process
		exp1.designer <- mtkRandLHSDesigner( listParameters = list(size=10) ) 
    
#   2) the workflow

  	exp1 <- mtkExpWorkflow(expFactors=Ishigami.factors,
	    processesVector = c(design=exp1.designer) )

# 	Run the workflow and reports the results.
    run(exp1)
    print(exp1)
    plot(exp1)

Run the code above in your browser using DataLab