Description Usage Arguments Details Value Author(s) Examples
General parallel applications.
1 | parpdist(x,y,cls)
|
cls |
A cluster run under the parallel package. |
x |
A data matrix |
y |
A data matrix |
Parallel wrapper for pdist
from package of the same
name. Finds all the distances from rows in x
to rows in
y
.
Object of type "pdist"
.
Norm Matloff
1 2 3 4 5 6 7 8 9 10 11 | # set up 'parallel' cluster
cls <- makeCluster(2)
setclsinfo(cls)
x <- matrix(runif(20),nrow=5)
y <- matrix(runif(32),nrow=8)
# 2 calls should have identical resultsW
pdist(x,y,cls)@dist
parpdist(x,y,cls)@dist
stopCluster(cls)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.