tests/testthat/test-kernelSmoothing.R

test_that("kernelSmoothing works", {
  
  iPas <- 20L
  iRayon <- 41L
  pts <- data.frame(x = c(22, 35), y = c(70, 55), V1 = c(10, 13))
  
  res_new <- btb::btb_smooth(pts, "2154", iPas, iRayon)
  res_old <- btb::kernelSmoothing(pts, "2154", iPas, iRayon)
  
  testthat::expect_identical(res_new,res_old)
  
})

Try the btb package in your browser

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

btb documentation built on Oct. 24, 2022, 5:10 p.m.