tests/testthat/test-density_at.R

test_that("density_at", {
  expect_equal(density_at(distribution_normal(1000), 0), 0.389, tolerance = 0.1)
  expect_equal(density_at(distribution_normal(1000), c(0, 1))[1], 0.389, tolerance = 0.1)
})

Try the bayestestR package in your browser

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

bayestestR documentation built on April 7, 2023, 5:09 p.m.