Nothing
source("SuperGauss-testfunctions.R")
context("NormalToeplitz - Log-Density.")
nrep <- 10
test_that("NormalToeplitz$logdens gives correct result.", {
replicate(n = nrep, expr = {
N <- round(abs(rnorm(n = 1, mean = 20, sd = 5)))
case.par <- expand.grid(type = c("fbm", "matern"),
n_obs = 1:3)
ncase <- nrow(case.par)
for(ii in 1:ncase){
cp <- case.par[ii, ]
type <- as.character(cp$type)
acf <- test_acf_func(N, type)
n_obs <- cp$n_obs
X <- rnormtz(n = n_obs, acf = acf, fft = FALSE)
Nt <- NormalToeplitz$new(N = N)
ld1 <- toep_ldens(t(X), acf)
ld2 <- Nt$logdens(X, acf)
expect_equal(ld1, ld2)
}
})
})
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.