Learn R Programming

GADGET (version 0.2.0)

space_fill: Create Space-Filling Design

Description

Generates a maximin latin hypercube sample (LHS) covering the space defined by lower_bound and upper_bound with budget number of points. The resulting LHS is shifted and scaled to the domain defined by lower_bound and upper_bound.

Usage

space_fill(lower_bound, upper_bound, budget)

Arguments

lower_bound

A vector of length d.

upper_bound

A vector of length d.

budget

An integer.

Value

A matrix with budget rows and d columns.

Examples

Run this code
# NOT RUN {
my_lhs <- space_fill(c(0,0),c(10,10),20)
plot(my_lhs)
# }

Run the code above in your browser using DataLab