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, diag = FALSE, upper = FALSE)

Arguments

x n by p matrix
diag if TRUE, diagonal of the distance matrix will be displayed
upper if TRUE, upper triangle of the distance matrix will be displayed

Details

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.0.0 Index]