compute the starting positions of windows for given size
getStartRecsOfWindows(
nRec,
winSizeInDays = winSizeRefInDays,
winSizeRefInDays = 4L,
strideInDays = floor(winSizeRefInDays/2L),
nRecInDay = 48L
)
numeric scalar: number of records
Window size in days
Window size in days for reference window (e.g. day-Window for night time)
step in days for shifting the window, for alligning usually a factor of winSizeRef
number of records within one day (for half-hourly data its 48)
getStartRecsOfWindows(1000)
#> [1] 1 97 193 289 385 481 577 673 769 865