bioDist (version 1.44.0)

euc: Euclidean distance

Description

Calculate pairwise Euclidean distances and saves the result as a 'dist' object

Usage

euc(x, ...)

Arguments

x
n by p matrix or an object of a class that extends eSet; if x is a matrix, pairwise distances are calculated between the rows of a matrix. If x is an object of a class that extends eSet, the method makes use of the 'exprs' method and pairwise distances are calculated between samples(columns) if sample is TRUE
...
arguments passed to euc:
  • diagif TRUE, then the diagonal of the distance matrix will be displayed; default is FALSE.
  • upperif TRUE, then the upper triangle of the distance matrix will be displayed; default is FALSE.
  • sampleFor objects of classes that extends eSet, pairwise distances are calculated between samples(columns) if sample is TRUE ; default value is TRUE

Value

An object of class dist with the pairwise Euclidean distance between rows except in case of objects of class that extend eSet when sample is TRUE

Details

The method calculates pairwise euclidean distances, assuming that all samples have the same number of observations

See Also

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

Examples

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

Run the code above in your browser using DataLab