tests/testthat/test_prior.R

context("Prior Function")

test_that("Prior Function", {

  dp <- DirichletProcessGaussian(rnorm(100))

  priorF <- PriorFunction(dp)

  expect_is(priorF, "function")
  expect_is(priorF(0), "numeric")
})

Try the dirichletprocess package in your browser

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

dirichletprocess documentation built on Aug. 25, 2023, 5:19 p.m.