tests/testthat/test_prior_clusters.R

context("Prior Clusters")

test_that("Prior Clusters", {

  dp <- DirichletProcessGaussian(rnorm(100))
  priorclusters <- PriorClusters(dp)

  expect_length(priorclusters, 2)
  expect_is(priorclusters, "list")

})

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.