mrc-ide / vivax

Individual-based model for P. vivax malaria transmission
MIT License
2 stars 1 forks source link

Create seasonality function and test #20

Closed giovannic closed 4 years ago

giovannic commented 4 years ago

Adds fourier model of seasonality.

Example added in the readme.

Worth checking that I have the formulation correct. It's very slightly different from Jamie's version.

Fixes this issue

codecov[bot] commented 4 years ago

Codecov Report

Merging #20 into dev will increase coverage by 69.37%. The diff coverage is 94.23%.

Impacted file tree graph

@@             Coverage Diff             @@
##              dev      #20       +/-   ##
===========================================
+ Coverage   17.81%   87.18%   +69.37%     
===========================================
  Files           9       11        +2     
  Lines        2201     2247       +46     
===========================================
+ Hits          392     1959     +1567     
+ Misses       1809      288     -1521     
Impacted Files Coverage Δ
src/model.h 100.00% <ø> (+25.00%) :arrow_up:
src/model.cpp 86.23% <57.14%> (+82.78%) :arrow_up:
R/run.R 90.90% <100.00%> (+2.22%) :arrow_up:
src/seasonality.cpp 100.00% <100.00%> (ø)
src/test-seasonality.cpp 100.00% <100.00%> (ø)
src/linpack.cpp 68.42% <0.00%> (+18.42%) :arrow_up:

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 de1c2fe...8025d98. Read the comment docs.