normDiff: Similarity metric of normalized difference

Description Usage Arguments Details Value Examples

View source: R/similarities.R

Description

Similarity metric of normalized difference

Usage

1

Arguments

x

(numeric) vector of values, one per patient (e.g. ages)

Details

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

Value

symmetric matrix of size ncol(dat) (number of patients) containing pairwise patient similarities

Examples

1
sim <- normDiff(rnorm(10))

netDx documentation built on Dec. 11, 2020, 2:01 a.m.