Nothing
# Extracted from test_HistogramBinOrder.R:13
# setup ------------------------------------------------------------------------
library(testthat)
test_env <- simulate_test_env(package = "DistributionalDDA", path = "..")
attach(test_env, warn.conflicts = FALSE)
# test -------------------------------------------------------------------------
w <- c(4, 3, 2, 1)
f <- .DensityFromHist(w, breaks = 0:4)
expect_equal(f(c(0.5, 1.5, 2.5, 3.5)), c(4, 3, 2, 1))
expect_equal(f(c(-1, 5)), c(0, 0))
lf <- .LogDensityFromHist(w, breaks = 0:4, background = 0)
expect_equal(lf(c(0.5, 3.5)), log(c(4, 1)))
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.