Max.Min.norm-methods {NetPreProc} | R 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} = \frac{(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
andgraphNEL
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);
[Package NetPreProc version 1.2 Index]