Nothing
context("shannon")
library(breakaway)
test_that("shannon isn't crazy", {
expect_equal(true_shannon(c(0.5, 0.5)),
log(2))
})
test_that("good_turing works", {
expect_error(good_turing(c(0.2, 0.8)))
expect_is(good_turing(apples), "alpha_estimate")
})
test_that("chao_shen works", {
expect_error(chao_shen(c(0.2, 0.8)))
expect_is(chao_shen(apples), "alpha_estimate")
})
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.