powered by
Minimal distance between one point to many points
min_dist(x, X, norm = rep(1, ncol(X)))
minimal distance
one point
matrix of points (same number of columns than x)
normalization vecor of distance (same number of columns than x)
min_dist(runif(3),matrix(runif(30),ncol=3))
Run the code above in your browser using DataLab