tests/testthat/test-pcf_fast.R

# testthat::context("test-pcf_fast")

testthat::test_that("estimate_pcf returns spatstat.fv object", {

  pattern <- spatstat.random::runifpoint(n = 100)

  pcf_est <- pcf_fast(pattern)

  testthat::expect_s3_class(pcf_est, "fv")
})

Try the onpoint package in your browser

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

onpoint documentation built on April 4, 2025, 2:12 a.m.