Skip to content

Commit

Permalink
Merge branch 'lfmcmc-updates-nov2024' of github.com:UofUEpiBio/epiwor…
Browse files Browse the repository at this point in the history
…ld into lfmcmc-updates-nov2024
  • Loading branch information
gvegayon committed Nov 25, 2024
2 parents 5619127 + 8fe73e9 commit 647094c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions examples/14-community-hosp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ The model has the following parameters:
Here is an example of the run

```bash
root ➜ /workspaces/epiworld/examples/14-community-hosp (example-karim) $ make
root ➜ /workspaces/epiworld/examples/14-community-hosp $ make
g++ -std=c++17 -O3 -g main.cpp -o main.o
root ➜ /workspaces/epiworld/examples/14-community-hosp (example-karim) $ ./main.o
root ➜ /workspaces/epiworld/examples/14-community-hosp $ ./main.o
_________________________________________________________________________
Running the model...
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| done.
Expand Down Expand Up @@ -65,9 +65,9 @@ Transition Probabilities:
## Notes
An few key observations from this example.
A few key observations from this example.
1. **We have a sampling function that exclude population**. These two functions are used in the update functions so, when susceptible (in the community) sample, the sampling excludes individuals who are hospitalized. Likewise, hospitalized
1. **We have a sampling function that exclude population**. These two functions are used in the update functions so the sampling excludes hospitalized individuals:
```cpp
Expand Down
4 changes: 2 additions & 2 deletions examples/14-community-hosp/main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "../../epiworld.hpp"

/***
* A concrete example would be a model that includes two populations.
* A concrete example with a model that includes two populations.
* - One, a ‘community’ population and the other,
* - a ‘hospital’ population.
* In this model, individuals can move from the community to the hospital (admission) and move from the hospital back into the community (discharge). In both settings, there can be an infectious disease process (e.g. SIS), but we would assume that transmission does not occur between the community and the hospital (of course, this could be relaxed in the future). But through admission and discharge, infections in the community impact dynamics in the hospital and the reverse is true as well.
Expand Down Expand Up @@ -130,4 +130,4 @@ int main() {

return 0;

}
}

0 comments on commit 647094c

Please sign in to comment.