powered by
Calculates the Shared Neighbor Distance
SharedNeighborDistance(Data, k = 5, NThreads = NULL, ComputationInR = FALSE)
[1:n,1:n] symmetric matrix, containing the distanes of the cases (rows) for the given data
[1:n,1:d] matrix with n cases, d variables
Integer defining the number of nearest neighbors
Number of threads in parallel computation.
Boolean (Default ComputationInR = FALSE). If FALSE, do computation in Rcpp, else in R (very slow).
Quirin Stier
https://github.com/albert-espin/snn-clustering/blob/master/SNN/snn.py
data(Hepta) distMatrix = SharedNeighborDistance(Hepta$Data, NThreads = 1, ComputationInR=TRUE)
Run the code above in your browser using DataLab