normDiff {netDx} | R Documentation |
Similarity metric of normalized difference
normDiff(x)
x |
(numeric) vector of values, one per patient (e.g. ages) |
Similarity metric used when data for a network consists of exactly 1 continuous variable (e.g. a network based only on 'age'). When number of variables is 2-5, use avgNormDiff() which takes the average of normalized difference for individual variables
symmetric matrix of size ncol(dat) (number of patients) containing pairwise patient similarities
sim <- normDiff(rnorm(10))