Nothing
skip_if_distr_not_installed(Gamma)
test_that("autotest", {
autotest_sdistribution(
sdist = Gamma,
pars = list(shape = 1, rate = 1),
traits = list(
valueSupport = "continuous",
variateForm = "univariate",
type = PosReals$new()
),
support = PosReals$new(),
symmetry = "asymmetric",
mean = 1,
mode = 0,
median = log(2),
variance = 1,
skewness = 2,
exkur = 6,
entropy = 1,
mgf = NaN,
cf = 1 / (1 - 1i),
pgf = NaN,
pdf = dgamma(1:3, shape = 1),
cdf = pgamma(1:3, shape = 1),
quantile = qgamma(c(0.24, 0.42, 0.5), shape = 1)
)
})
test_that("manual", {
expect_equal(Gamma$new(shape = 1, rate = 2)$mgf(1), 2)
})
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.