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

Description Usage Arguments Value See Also Examples

View source: R/simdpp.r

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 \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

1
2
3
4
5
library(demu)

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

demu documentation built on Jan. 13, 2020, 5:06 p.m.