powered by
Rescale min-max scaling output between two numbers.
NNS.rescale(x, a, b)
Returns a rescaled distribution within provided limits.
vector of data.
numeric; lower limit.
numeric; upper limit.
Fred Viole, OVVO Financial Systems
if (FALSE) { set.seed(123) x <- rnorm(100) NNS.rescale(x, 5, 10) }
Run the code above in your browser using DataLab