Learn R Programming

amanpg (version 0.3.4)

normalize: Matrix Normalization

Description

Center the input matrix to mean 0 and scale to Euclidean length 1

Usage

normalize(x, center=TRUE, scale=TRUE)

Value

x

normalized matrix

Arguments

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

Author

Shixiang Chen, Justin Huang, Benjamin Jochem, Shiqian Ma, Lingzhou Xue and Hui Zou