tests/testthat/test-simulate_background.R

data(VCI_earthquakes_plus)
data(VCI_simulated_background_earthquakes)
out_expect<- VCI_simulated_background_earthquakes
set.seed(1)
out<-simulate_background_earthquakes(VCI_earthquakes_plus)
test_that("test simulate_background_earthquakes", {
  expect_equal(out,out_expect )
})

Try the ETASbootstrap package in your browser

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

ETASbootstrap documentation built on June 22, 2024, 10:05 a.m.