Learn R Programming

amap (version 0.5-1)

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".

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