Created
April 11, 2015 22:43
-
-
Save jvcasillas/c8290797ee157a59bd22 to your computer and use it in GitHub Desktop.
Euclidean distance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
euc.dist <- function(x1, x2){ | |
x <- sqrt(sum((x1 - x2)^2)) | |
return(x) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment