Description Usage Arguments Details Value Author(s) References See Also Examples

Draws a Latin Hypercube Sample from a set of uniform distributions for use in creating a Latin Hypercube Design. This function uses the Columnwise Pairwise (CP) algorithm to generate an optimal design with respect to the S optimality criterion.

1 | ```
optimumLHS(n=10, k=2, maxSweeps=2, eps=.1, verbose=FALSE)
``` |

`n` |
The number of partitions (simulations or design points) |

`k` |
The number of replications (variables) |

`maxSweeps` |
The maximum number of times the CP algorithm is applied to all the columns. |

`eps` |
The optimal stopping criterion |

`verbose` |
Print informational messages |

Latin hypercube sampling (LHS) was developed to generate a distribution
of collections of parameter values from a multidimensional distribution.
A square grid containing possible sample points is a Latin square iff there
is only one sample in each row and each column. A Latin hypercube is the
generalisation of this concept to an arbitrary number of dimensions. When
sampling a function of `k`

variables, the range of each variable is divided
into `n`

equally probable intervals. `n`

sample points are then drawn such that a
Latin Hypercube is created. Latin Hypercube sampling generates more efficient
estimates of desired parameters than simple Monte Carlo sampling.

This program generates a Latin Hypercube Sample by creating random permutations
of the first `n`

integers in each of `k`

columns and then transforming those
integers into n sections of a standard uniform distribution. Random values are
then sampled from within each of the n sections. Once the sample is generated,
the uniform sample from a column can be transformed to any distribution by
using the quantile functions, e.g. qnorm(). Different columns can have
different distributions.

S-optimality seeks to maximize the mean distance from each design point to all the other points in the design, so the points are as spread out as possible.

This function uses the CP algorithm to generate an optimal design with respect to the S optimality criterion.

An `n`

by `k`

Latin Hypercube Sample matrix with values uniformly distributed on [0,1]

Rob Carnell

Stocki, R. (2005)
A method to improve design reliability using optimal Latin hypercube sampling
*Computer Assisted Mechanics and Engineering Sciences*
**12**, 87–105.

`randomLHS`

, `geneticLHS`

,
`improvedLHS`

and `maximinLHS`

to generate Latin Hypercube Samples.
`optAugmentLHS`

, `optSeededLHS`

, and
`augmentLHS`

to modify and augment existing designs.

1 | ```
optimumLHS(4, 3, 5, .05)
``` |

```
[,1] [,2] [,3]
[1,] 0.8282761 0.494964214 0.3338395
[2,] 0.2508191 0.714789411 0.9777951
[3,] 0.6694213 0.841089642 0.1058275
[4,] 0.1454882 0.007406306 0.5460881
```

lhs documentation built on May 30, 2017, 2:28 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.