tests/testthat/test-compute_kernel_Gaussian.R

context("compute_kernel_Gaussian")

test_that("squared_euclid_distance", {
  set.seed(3)
  x <- rnorm(30)
  y <- rnorm(1)
  act <- squared_euclid_distance(x, y)

  expect_equal(act, 57.61699, tolerance = 1e-6)
})

Try the densratio package in your browser

Any scripts or data that you put into this service are public.

densratio documentation built on July 1, 2019, 1:02 a.m.