crossNN | R Documentation |
Compute cross-type nearest neighbor distances
crossNN(dist, n1, n2, w = rep(1, n1 + n2))
dist |
a distance matrix, the upper n1 x n1 part contains distances between objects of type 1 the lower n2 x n2 part contains distances between objects of type 2 |
n1 |
numbers of objects of type 1 |
n2 |
numbers of objects of type 2 |
w |
optional weights of the objects (length n1+n2), defaults to equal weights |
a (n1+n2) x 2 matrix with the cross-type nearest neighbor distances and weights given as the sum of the weights of the involved objects
Fabian Scheipl
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.