This is a function to apply decimal scaling to a matrix or dataframe. Decimal scaling transforms the data into [-1,1] by finding k such that the absolute value of the maximum value of each attribute divided by 10\^k is less than or equal to 1.
The dataset to be scaled
Uses the scale function found in the R base package.
The original matrix that has been scaled by decimal scaling
Caroline Rodriguez and Edgar Acuna
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.