augmentLHS(lhs, m=1)lhsn by k Latin Hypercube Sample matrix with values uniformly distributed on [0,1]lhs matrix. Then randomly sweep through each
column (1...k) in the repartitioned design to find the missing cells.
For each column (variable), randomly search for an empty row, generate a
random value that fits in that row, record the value in the new matrix.
The new matrix can contain more filled cells than m unles $m = 2n$,
in which case the new matrix will contain exactly m filled cells.
Finally, keep only the first m rows of the new matrix. It is guaranteed to
have m full rows in the new matrix. The deleted rows are partially full.
The additional candidate points are selected randomly due to the random search
for empty cells.randomLHS, geneticLHS,
improvedLHS, maximinLHS, and
optimumLHS to generate Latin Hypercube Samples.
optAugmentLHS and optSeededLHS
to modify and augment existing designs.a <- randomLHS(4,3)
a
augmentLHS(a, 2)Run the code above in your browser using DataLab