compute the starting positions of windows for given size

getStartRecsOfWindows(
  nRec,
  winSizeInDays = winSizeRefInDays,
  winSizeRefInDays = 4L,
  strideInDays = floor(winSizeRefInDays/2L),
  nRecInDay = 48L
)

Arguments

nRec

numeric scalar: number of records

winSizeInDays

Window size in days

winSizeRefInDays

Window size in days for reference window (e.g. day-Window for night time)

strideInDays

step in days for shifting the window, for alligning usually a factor of winSizeRef

nRecInDay

number of records within one day (for half-hourly data its 48)

Examples

getStartRecsOfWindows(1000)
#>  [1]   1  97 193 289 385 481 577 673 769 865