distEuclidean <-
function(x,y) {
z <- matrix(0, nrow = nrow(x), ncol = nrow(y))
for (k in 1:nrow(y)) {
z[, k] <- sqrt(colSums((t(x) - y[k, ])^2))
}
return(z)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.