unscalemat: Unscale a matrix back to its original ranges.

Description Usage Arguments Value See Also Examples

Description

unscalemat() is a helper function to rescale a matrix back to its original ranges. Typically this is used to rescale the posterior samples of the parameters back to their original scale.

Usage

1
unscalemat(mat,r)

Arguments

mat

An n x p matrix of numbers scaled to the [0,1] hypercube

r

An p x 2 matrix of the original ranges of the variables

Value

A n x p matrix with variables rescaled back to their original ranges, as specified by ranges.

See Also

getranges scaledesign

Examples

1
2
3
4
5
6
library(cmce)

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

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