View source: R/trans_norm_minmax.R
| minmax | R Documentation |
Linearly scales numeric columns to the [0,1] range per column.
minmax()
For each numeric column j, computes (x - min_j) / (max_j - min_j). Constant columns map to 0.
minmax = (x-min(x))/(max(x)-min(x))
returns an object of class minmax
Han, J., Kamber, M., Pei, J. (2011). Data Mining: Concepts and Techniques. (Normalization section)
data(iris)
head(iris)
trans <- minmax()
trans <- fit(trans, iris)
tiris <- transform(trans, iris)
head(tiris)
itiris <- inverse_transform(trans, tiris)
head(itiris)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.