📜  r - 将数据从 0 缩放到 1 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:21.977000             🧑  作者: Mango

代码示例1
s = sort(rexp(100)) # Generate 100 values of exponential distribution
range01 <- function(x){(x-min(x))/(max(x)-min(x))} # Function MinMax Scaler
range01(s) # Calculate scaleing from 0 to 1