Closed peter-t-fox closed 4 years ago
Heads up @thibaud-porphyre @peter-t-fox - the "Covid19_EERAModel" label was applied to this issue.
t_index
, which is the time of the first detected cases within the unit of interest.
extra_time
is not time that has been removed from previous loop but the number of days prior the first detection (index cases) which are considered to show silent spread (spread of disease prior detection). the duration of this period is informed by the parameter hrp
. Because we are modelling observed/detected cases and deaths (not true presence), we therefore padded the observation with zeros.Sure, I will look at this PR on Thursday, as I am quite new to the project, I may not be able to give good-enough in-depth feedback for the time being. I will try to finish it on that day.
Function:
select_obs
Location:Model.cpp
Purpose: Computation of corrected incidences for cases and deaths time seriesSignature:
seqTime
variable is not used and should be removedstatic_cast
is unnecessary: the parameter is already an integer.t_index
)t_index
does not need to be passed in at all, as it is not used after theselect_obs
function returns.data_tmp
anddeath_tmp
are not altered by the function: they should be marked asconst
.extra_time
would seem to correspond to number of days removed in previous loop.extra_cases
andextra_deaths
is unnecessary, as they fall out of scope at this point anyway.The final chunk of code applies the
compute_incidence
andcorrect_incidence
functions to the new cases and deaths time series.compute_incidence
andcorrect_incidence
functions to use move semantics instead of out parameters e.g.