tests/testthat/test-streams.R

test_that("MOA random RBF event streams generate numeric points", {
  stream <- DSD_RandomRBFGeneratorEvents(
    k = 2,
    d = 3,
    noiseLevel = 0,
    modelSeed = 17,
    instanceSeed = 23
  )

  expect_s3_class(stream, "DSD_RandomRBFGeneratorEvents")

  points <- get_points(stream, 5, info = FALSE)
  expect_equal(dim(points), c(5L, 3L))
  expect_true(all(vapply(points, is.numeric, logical(1))))
})

Try the streamMOA package in your browser

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

streamMOA documentation built on Oct. 14, 2026, 1:06 a.m.