powered by
calculates euclidean distances for n dimensions between a matrix of points and a single point
p_mat_dist(mat, p)
the distances between every row of mat and p
matrix with points as rows
point to calculate distances
p_mat_dist(as.matrix(cbind(runif(100),runif(100))), c(3,4))
Run the code above in your browser using DataLab