1 #shorthand: map 1->1, 2->2, 3->3, 4->1, ..., 149->2, 150->3
5 #MOCK data; NOTE: could be in inst/testdata as well
6 getDataTest = function(n)
10 L = length(x) #96 1/4h
13 s3 = c( s1[1:(L%/%2)] , s2[(L%/%2+1):L] )
21 serie = s[[I(i)]] + rnorm(L,sd=0.01)
22 # 10 series with NAs for index 2
23 if (I(i) == 2 && i >= 60 && i<= 90)
24 serie[sample(seq_len(L),1)] = NA
25 time = as.POSIXct((i-1)*60*60*24+15*60*(1:96), origin="2007-01-01", tz="GMT")
28 data$append(time, serie, exo, exo_hat)