R/statistics.R
mmscale.Rd
Min_Max scale
mmscale(x, min_s = 0, max_s = 1, n = 1, plot = FALSE)
a numeric vector
scale min
scale max
linear transfer for n=1; the slope will change if n>1 or n<1
whether plot the transfer?
x <- runif(10) mmscale(x, 5, 10) #> [1] 5.000000 6.637252 9.305621 6.181818 7.860065 6.532512 8.008600 #> [8] 5.715553 10.000000 7.703900