min-max normalization
Examples
normalization(runif(100,min = -100, max = 100))
#> [1] 1.1510589 0.2476292 0.7367324 0.5586049 0.5255539 1.1084477 0.2000000
#> [8] 0.2277490 0.4848044 0.5578120 0.8904043 0.9883270 0.2577476 0.5797915
#> [15] 0.5554236 0.2157199 0.2272967 0.5667839 0.3386641 0.4446630 0.5670892
#> [22] 0.6899854 0.8348485 0.5307690 1.1444937 0.4245751 0.7563026 1.1236064
#> [29] 1.0195918 0.3948366 1.1548522 0.7490662 0.4760451 1.1148149 0.7377722
#> [36] 0.7977747 0.5922773 0.9963358 0.4254980 0.6278139 0.2875985 0.6632019
#> [43] 0.8846421 1.0937344 1.0485238 0.3068374 1.1691096 0.7800008 0.5551105
#> [50] 1.2000000 0.2030559 1.0421576 0.9439466 0.7924078 0.8941292 0.7309837
#> [57] 0.7393831 0.7597967 0.4955920 0.9312759 0.2019229 0.4734186 0.6558163
#> [64] 0.9452958 0.7859047 0.5716284 1.1721367 0.8878192 1.0006656 1.0743742
#> [71] 0.7819281 1.0178895 0.9881970 0.2537964 1.1261894 0.3285456 1.0399635
#> [78] 0.9627544 0.9728276 0.3543639 1.0316505 0.2244575 0.5190788 0.4165089
#> [85] 0.7275234 0.4739869 0.6313623 0.8321674 0.8934819 0.3215161 0.8740262
#> [92] 0.7850888 0.3658523 0.4695465 0.2432662 0.2286203 0.9598520 0.2675089
#> [99] 1.1258065 0.7426678