Learn R Programming

BioPhysConnectoR (version 1.6-10)

mat.norm: Normalization of a Matrix

Description

A matrix is normalized by dividing each entry $[i,j]$ by the square root of the product of the diagonal entries $[i,i]$ and $[j,j]$. The input matrix should be a square matrix with positive diagonal entries.

Usage

mat.norm(mat)

Arguments

mat
numerical matrix to be normalized

Value

The normalized matrix is returned.

Examples

Run this code
a<-matrix(runif(16, 1, 15), 4, 4)
b<-mat.norm(a)

Run the code above in your browser using DataLab