Nothing
context("Internal functions")
test_that("qcontbern works", {
set.seed(8865323)
tests <- 10L
for (t in seq_len(tests)) {
prob <- runif(1)
lamb <- runif(1)
expect_equal(pcontbern(qcontbern(prob, lamb), lamb), prob)
expect_equal(qcontbern(prob, .5), prob)
}
})
test_that("pcontbern works", {
set.seed(8865323)
tests <- 10L
for (t in seq_len(tests)) {
x <- runif(1)
lamb <- runif(1)
expect_equal(qcontbern(pcontbern(x, lamb), lamb), x)
}
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.