rectscale | 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.