https://github.com/cran/bayestestR
Tip revision: 3da49db3cf0eea4d2c5eba241ddb5470cd7dd929 authored by Dominique Makowski on 26 January 2021, 16:40:03 UTC
version 0.8.2
version 0.8.2
Tip revision: 3da49db
test-overlap.R
context("overlap")
test_that("overlap", {
set.seed(333)
x <- distribution_normal(1000, 2, 0.5)
y <- distribution_normal(1000, 0, 1)
testthat::expect_equal(as.numeric(overlap(x, y)), 0.185, tol = 0.01)
})