Learn R Programming

rgp (version 0.4-1)

latinHypercubeDesign: Create a latin hypercube design (LHD)

Description

Produces a LHD matrix with dimension columns and size rows.

Usage

latinHypercubeDesign(dimension, size = max(11 * dimension, 1 + 3 * dimension + dimension * (dimension - 1)/2 + 1), lowerBounds = replicate(dimension, 0), upperBounds = replicate(dimension, 1), retries = 2 * dimension)

Arguments

dimension
Dimension of the problem (will be no. of columns of the result matrix).
size
Number of design points, defaults to max(11 * dimension, 1 + 3 * dimension + dimension * (dimension - 1) / 2 + 1).
lowerBounds
Numeric vector of length dimension giving lower bounds for sampling, defaults to c(0.0, ...).
upperBounds
Numeric vector of length dimension giving upper bounds for sampling, defaults to c(1.0, ...).
retries
Number of retries, which is the number of trials to find a design with the lowest distance, default is 2 * dimension.

Value

A LHD matrix.