DoubleStandardize: Function that double standardizes a matrix

View source: R/Preliminary_Functions.R

DoubleStandardizeR Documentation

Function that double standardizes a matrix

Description

Function that double standardizes a matrix

Usage

DoubleStandardize(X, tol = .Machine$double.eps^0.5, maxIter = 500)

Arguments

X

Original matrix to be double-standardized

tol

Tolerance. Default is square root of machine precision

maxIter

Maximum iteration. Default is 500

Details

After double standardization, the matrix will have mean zero and (population) variance one for each row and column.

Value

A list that contains:

Result

The matrix after double standardization.

Iter

Number of iterations the function runs.


justicesuker/DMMD_Package documentation built on Aug. 6, 2022, 12:34 p.m.