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

Description Usage Arguments Value See Also Examples

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

1
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

1
2
3
4
5
library(cmce)

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

cmce documentation built on May 1, 2019, 7:33 p.m.