Nothing
test_that("irregular data generation works", {
expect_class(
tf_rgp(2, arg = list(sort(runif(25)), sort(runif(34)))),
"tfd_irreg"
)
expect_error(tf_rgp(2, arg = list(runif(25), sort(runif(34)))))
expect_error(tf_rgp(2, arg = list(runif(25))))
})
test_that("user defined covariance works", {
my_sqexp <- function(s, t) exp(-(s - t)^2 / 0.1)
set.seed(1312)
x1 <- tf_rgp(1, cov = my_sqexp)
set.seed(1312)
x2 <- tf_rgp(1, cov = "squareexp")
expect_equal(x1, x2)
expect_error(
tf_rgp(1, cov = function(s, t, x) (s - t) / x),
"2 formal arguments"
)
})
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.