Max.Min.norm-methods: Max-min graph normalization

Max.Min.norm-methodsR Documentation

Max-min graph normalization

Description

Graph normalization with respect to the minimum and maximum value of its weights. Each entry of the normalized matrix is in the range [0..1]:

W.norm = (W - min(W))/(max(W)-min(W))

Usage

Max.Min.norm(W)

Arguments

W

an object representing the graph to be normalized

Value

The normalized adjacency matrix of the network

Methods

signature(W = "graph")

an object of the virtual class graph (hence including objects of class graphAM and graphNEL from the package graph)

signature(W = "matrix")

a matrix representing the adjacency matrix of the graph

Examples

library(bionetdata);
# max-min normalization for a drug-drug similarity network
data(DD.chem.data);
W <- Max.Min.norm(DD.chem.data);
# the same using an object of class graphAM 

g <- new("graphAM", adjMat=DD.chem.data, values=list(weight=DD.chem.data));
Wg <- Max.Min.norm(g);

NetPreProc documentation built on Sept. 19, 2022, 5:06 p.m.