euc {bioDist}R Documentation

Euclidean distance

Description

Calculate pairwise Euclidean distances for all columns of a matrix and save as a 'dist' object

Usage

euc(x, ...)

Arguments

x n by p matrix or ExpressionSet; if x is an ExpressionSet, then the function uses its 'exprs' slot.
... arguments passed to euc:
diag
if TRUE, then the diagonal of the distance matrix will be displayed; default is FALSE.
upper
if TRUE, then the upper triangle of the distance matrix will be displayed; default is FALSE.

Value

Pairwise Euclidean distance object

Author(s)

Beiying Ding

See Also

spearman.dist, tau.dist, man,KLdist.matrix,KLD.matrix, mutualInfo

Examples

 x <- matrix(rnorm(200), nrow = 5)
 euc(x)

[Package bioDist version 1.14.0 Index]