powered by
fast Euclidean distance matrix
fastdist(x)
matrix with sample rows for which the distance matrix is computed (to use with vectors, use as.matrix(x))
as.matrix(x)
# NOT RUN { #require(microbenchmark) #x = rnorm(100) #microbenchmark(fastdist(as.matrix(x)),as.matrix(dist(x))) # }
Run the code above in your browser using DataLab