https://github.com/cran/bayestestR
Raw File
Tip revision: 1b89ec86b6a914c4d45bee998d08eed1ef23f57f authored by Dominique Makowski on 20 July 2020, 08:30:03 UTC
version 0.7.2
Tip revision: 1b89ec8
test-density_at.R
test_that("density_at", {
  testthat::expect_equal(density_at(distribution_normal(1000), 0), 0.389, tolerance = 0.01)
  testthat::expect_equal(density_at(distribution_normal(1000), c(0, 1))[1], 0.389, tolerance = 0.01)
})
back to top