Description Usage Parameters used to manage the method Details References See Also Examples
A mtk
compliant implementation of the method for drawing Random Latin Hypercube Design.
mtkRandLHSDesigner(listParameters = NULL)
mtkNativeDesigner(design="RandLHS", information=NULL)
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<m), will have the same first k columns if the seed is the same.
The mtk
implementation uses the randomLHS
function of the package lhs
. For further details on the arguments and the behavior, see help(randomLHS, lhs)
.
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.
Stein, M. (1987) Large Sample Properties of Simulations Using Latin Hypercube Sampling. Technometrics. 29, 143–151.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.