Learn R Programming

scidb (version 1.2-0)

dist: Distance Matrix Computation

Description

Compute and return a distance matrix that contains the Euclidean distance between rows of a data matrix.

Usage

"dist"(x, method=c("euclidean","manhattan","maximum"))

Arguments

x
a numeric matrix object of class scidbdf.
method
the distance measure to be used. This must be one of euclidean, maximum, or manhattan. Any unambiguous substring can be given.

Value

dist returns a distance matrix object of class "scidb".

Details

The (i,j) position of the output matrix contains the distance between rows i and j of the data matrix x as measured by the specified norm. The function only returns values below the diagonal as a sparse SciDB matrix.

Missing values are not allowed.

See Also

hclust. dist.