dime-worldbank / Disease-Modelling-SSA

This repository contains the code for an agent-based model used for COVID-19 in Sub-Saharan Africa. The original code was written in Python by Aivin Solatorio and is since being developed in Java. Complimentary risk modelling has been conducted in R as an intermediate product and is also part of this repo
MIT License
6 stars 2 forks source link

negative cases reported in the model #6

Closed RobertManningSmith closed 1 year ago

RobertManningSmith commented 2 years ago

Need to find out why there are negative cases

RobertManningSmith commented 1 year ago

I changed the way that cases were counted, at each time step I used java array streams to search over the list of agents to see who met had certain properties. This then ensured that the lowest number of cases would be zero and never below zero as no subtraction happened.