normalize {amanpg} | R Documentation |
Center the input matrix to mean 0 and scale to Euclidean length 1
normalize(x, center=TRUE, scale=TRUE)
x |
matrix to be normalized |
center |
centers the input matrix to mean 0 if TRUE, default if TRUE |
scale |
scales the input matrix to Euclidean length 1 if TRUE, default is TRUE |
x |
normalized matrix |
Shixiang Chen, Justin Huang, Benjamin Jochem, Shiqian Ma, Lingzhou Xue and Hui Zou