|
epinowcast
|
Go to the source code of this file.
Functions | |
| array[] int | filt_obs_indexes (int start, int end, array[] int csl, array[] int sl) |
| array[] int filt_obs_indexes | ( | int | start, |
| int | end, | ||
| array[]int | csl, | ||
| array[]int | sl ) |
Find the contiguous interval of flattened observations
Identifies the range of contiguous observation indexes in a flattened observation array between two specified snapshot IDs. The function calculates the starting and ending indexes of the observations corresponding to the snapshots and determines the length of this interval.
| start | The ID of the starting snapshot. |
| end | The ID of the ending snapshot. |
| csl | Array of cumulative start indexes for each snapshot. |
| sl | Array of start index for each observation period. |
Definition at line 25 of file filt_obs_indexes.stan.