# \dontshow{
options(gmax.processes = 2)
# }
gdb.init_examples()
intervs1 <- gintervals(
c(1, 1, 2), c(100, 300, 200),
c(300, 500, 300)
)
intervs2 <- gintervals(
c(1, 2, 2), c(400, 1000, 3000),
c(800, 2000, 4000)
)
itr <- giterator.cartesian_grid(
intervs1, c(-20, 100), intervs2,
c(-40, -10, 50)
)
giterator.intervals(iterator = itr)
itr <- giterator.cartesian_grid(intervs1, c(-20, 50, 100))
giterator.intervals(iterator = itr)
itr <- giterator.cartesian_grid(intervs1, c(-20, 50, 100),
min.band.idx = -1,
max.band.idx = 0
)
giterator.intervals(iterator = itr)
Run the code above in your browser using DataLab