rectscale {plgp} | R Documentation |
Scale data lying in an arbitrary rectangle to lie in the unit rectangle, and back again
rectscale(X, rect)
rectunscale(X, rect)
X |
a |
rect |
a |
a matrix
or data.frame
with the same dimensions as
X
scaled or un-scaled as appropriate
Robert B. Gramacy, rbg@vt.edu
https://bobby.gramacy.com/r_packages/plgp/
X <- matrix(runif(10, 1, 3), ncol=2)
rect <- rbind(c(1,3), c(1,3))
Xs <- rectscale(X, rect)
rectunscale(Xs, rect)