Learn R Programming

cmce (version 0.1.0)

scaledesign: Rescale a design matrix to the [0,1] hypercube.

Description

scaledesign() is a helper function to rescale a design to the [0,1]) hypercube using variable ranges previously extracted by a call to getranges().

Usage

scaledesign(design,r)

Arguments

design

An n x p matrix of input settings

r

An p x 2 matrix of variable ranges extracted from getranges()

Value

A n x p design matrix rescaled to the [0,1] hypercube.

See Also

unscalemat

Examples

Run this code
# NOT RUN {
library(cmce)

design=matrix(runif(10,1,5),ncol=2,nrow=5)
r=getranges(design)
scaledesign(design,r)

# }

Run the code above in your browser using DataLab