Learn R Programming

amap (version 0.7-3)

distpar: Parallelized Distance Matrix Computation

Description

This function computes and returns the distance matrix computed by using the specified distance measure to compute the distances between the rows of a data matrix.

Usage

distpar(x, method = "euclidean", nbproc = 2, diag = FALSE, upper = FALSE)

Arguments

Value

An object of class "dist".

References

Antoine Lucas and Sylvain Jasson, Using amap and ctc Packages for Huge Clustering, R News, 2006, vol 6, issue 5 pages 58-60.

See Also

Dist

Examples

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

## compute dist with 8 threads
distpar(x,nbproc=8)

## compute pearson dist with 8 threads
distpar(x,nbproc=8,method="pearson")

Run the code above in your browser using DataLab