normalize {amanpg}R Documentation

Matrix Normalization

Description

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

Usage

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

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

Value

x

normalized matrix

Author(s)

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


[Package amanpg version 0.3.4 Index]