Min_Max scale

mmscale(x, min_s = 0, max_s = 1, n = 1, plot = FALSE)

Arguments

x

a numeric vector

min_s

scale min

max_s

scale max

n

linear transfer for n=1; the slope will change if n>1 or n<1

plot

whether plot the transfer?

Value

a numeric vector

Examples

x <- runif(10)
mmscale(x, 5, 10)
#>  [1]  5.850849  5.680055  8.507024  9.603305 10.000000  7.878691  8.018658
#>  [8]  8.644457  6.134451  5.000000