tests/testthat/test-fit_icm.R

test_that("fit_icm works", {
  expect_is(fit_icm(Z_potts, mrfi(), theta_potts, error_prob = 0.2, 6), "matrix")
  expect_error(fit_icm(Z_potts, mrfi(), theta_potts, error_prob = 0, 6))
})

Try the mrf2d package in your browser

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

mrf2d documentation built on Jan. 26, 2022, 1:06 a.m.