Nothing
context("Euclidean distance")
test_that("Euclidean distance is correct", {
comparator <- Euclidean()
expect_equal(comparator(c(1,2,3), c(2,3,4)), sqrt(3))
expect_equal(comparator(-c(1,1,1), c(1,1,1)), sqrt(12))
expect_equal(comparator(c(1,2), c(1,2)), 0)
expect_equal(comparator(0, 0), 0)
expect_equal(comparator(0, Inf), Inf)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.