inst/common/multithreadData.R

## large but simple
generateMultithreadData <- function() {
  set.seed(99)
  
  n <- 500001
  x <- matrix(rnorm(n), n, 1)
  y <- sin(x) + rnorm(n)

  return (list(y = y, x = x))
}
testData <- generateMultithreadData()
rm(generateMultithreadData)

Try the dbarts package in your browser

Any scripts or data that you put into this service are public.

dbarts documentation built on Sept. 24, 2019, 5:05 p.m.