epinowcast
Loading...
Searching...
No Matches
filt_obs_indexes.stan
Go to the documentation of this file.
1
25array[] int filt_obs_indexes(int start, int end, array[] int csl,
26 array[] int sl) {
27 array[3] int n;
28 n[1] = csl[start] - sl[start] + 1; // index of first obs in snapshot start
29 n[2] = csl[end]; // index of last obs in snapshot end
30 n[3] = n[2] - n[1] + 1; // total number of flattened obs / length of interval
31 return(n);
32}
array[] int filt_obs_indexes(int start, int end, array[] int csl, array[] int sl)