scaledesign {demu}R Documentation

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 \times p matrix of input settings

r

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

Value

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

See Also

unscalemat

Examples

library(demu)

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


[Package demu version 0.3.0 Index]