Learn R Programming

DiceDesign (version 1.8)

nolhDesign: Cioppa's Nearly Orthogonal Latin Hypercube Designs

Description

This function generates a NOLH design of dimension 2 to 29 and normalizes it to the selected range. The design is extracted from Cioppa's NOLHdesigns list.

Usage

nolhDesign(dimension, range = c(0, 1))

Arguments

dimension

number of input variables

range

the scale (min and max) of the inputs. Range (0, 0) and (1, 1) are special cases and call integer ranges \((-m, m)\) and \((0, 2m)\). See the examples

Value

A list with components:

n

the number of lines/experiments

dimension

the number of columns/input variables

design

the design of experiments

See Also

Cioppa's list NOLHdesigns. Other NOLH and OLH designs: nolhdrDesign, olhDesign.

Examples

Run this code
# NOT RUN {
## Classical normalizations
nolhDesign(8, range = c(1, 1))
nolhDesign(8, range = c(0, 0))
nolhDesign(8, range = c(0, 1))
nolhDesign(8, range = c(-1, 1))

## Change the dimnames, adjust to range (-10, 10) and round to 2 digits
xDRDN(nolhDesign(8), letter = "T", dgts = 2, range = c(-10, 10))

## A list of designs
lapply(5:9, function(n) nolhDesign(n, range = c(-1, 1))$design)
# }

Run the code above in your browser using DataLab