mrc-ide / individual

R Package for individual based epidemiological models
https://mrc-ide.github.io/individual
Other
30 stars 16 forks source link

feat/ragged_var #168

Closed slwu89 closed 2 years ago

slwu89 commented 2 years ago

Classes for RaggedVariables, implemented as vector<vector<A>>.

I also changed very slightly the Integer/DoubleVariables to use the generic variable_get_size instead of integer/double_variable_get_size and got rid of the extraneous code in their respective .cpp interfaces.

codecov[bot] commented 2 years ago

Codecov Report

Merging #168 (5e7bbec) into dev (327f174) will increase coverage by 0.14%. The diff coverage is 95.52%.

@@            Coverage Diff             @@
##              dev     #168      +/-   ##
==========================================
+ Coverage   95.81%   95.96%   +0.14%     
==========================================
  Files          28       35       +7     
  Lines        1457     1758     +301     
==========================================
+ Hits         1396     1687     +291     
- Misses         61       71      +10     
Impacted Files Coverage Δ
src/double_variable.cpp 96.96% <ø> (+5.30%) :arrow_up:
src/integer_variable.cpp 100.00% <ø> (+4.25%) :arrow_up:
src/ragged_double.cpp 91.66% <91.66%> (ø)
src/ragged_integer.cpp 91.66% <91.66%> (ø)
inst/include/RaggedVariable.h 94.78% <94.78%> (ø)
R/ragged_double.R 98.27% <98.27%> (ø)
R/ragged_integer.R 98.27% <98.27%> (ø)
R/double_variable.R 100.00% <100.00%> (ø)
R/integer_variable.R 97.18% <100.00%> (ø)
inst/include/RaggedDouble.h 100.00% <100.00%> (ø)
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 2edae4c...5e7bbec. Read the comment docs.