getranges: Get variable ranges from a design matrix.

Description Usage Arguments Value Examples

View source: R/simdpp.r

Description

getranges() is a helper function to get the lower/upper bounds of variables in a design matrix, used for rescaling the inputs to the [0,1] hypercube.

Usage

1
getranges(design)

Arguments

design

An n \times p matrix of input settings

Value

A p \times 2 matrix with the lower and upper bounds (rounded to nearest integer value) of all p variables in the design matrix.

Examples

1
2
3
4
library(demu)

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

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