epinowcast
allocate_observed_obs.stan File Reference

Go to the source code of this file.

Functions

vector allocate_observed_obs (int start, int end, vector obs, array[] int sl, array[] int csl, array[] int sdmax, array[] int csdmax)
 
array[] int allocate_observed_obs (int start, int end, array[] int obs, array[] int sl, array[] int csl, array[] int sdmax, array[] int csdmax)
 

Function Documentation

◆ allocate_observed_obs() [1/2]

array[] int allocate_observed_obs ( int  start,
int  end,
array[]int  obs,
array[]int  sl,
array[]int  csl,
array[]int  sdmax,
array[]int  csdmax 
)

Definition at line 44 of file allocate_observed_obs.stan.

◆ allocate_observed_obs() [2/2]

vector allocate_observed_obs ( int  start,
int  end,
vector  obs,
array[]int  sl,
array[]int  csl,
array[]int  sdmax,
array[]int  csdmax 
)

Allocate observed observations for a given time range

This function allocates observed observations within a specified time range based on input observation data (either vector or integer array) and various supporting arrays. This function is overloaded to support both vector and array[int] types for observed data.

Parameters
startThe start index for the allocation range.
endThe end index for the allocation range.
obsObservations to be allocated. Can be a vector (for continuous data) or an array of integers (for count data).
slArray of start index for each observation period.
cslArray of cumulative start indices.
sdmaxArray of maximum start dates for each period.
csdmaxArray of cumulative start dates.
Returns
Allocated observations within the specified time range. The return type matches the type of obs (either vector or array[int]).
Note
Dependencies:
  • filt_obs_indexes

Definition at line 31 of file allocate_observed_obs.stan.