Code associated with "Multiscale, resurgent epidemics in a
hierarchical metapopulation model", PNAS, 102(32),11157-11162 2005
The code is written in C with a MATLAB wrapper.
You need to use MATLAB
to compile the C code, then run it with a MATLAB script.
More information about MATLAB-C interface can be found here:
http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/matlab_external.shtml
Main code:
sir_hierarchy.c
An example of MATLAB script to run the main code:
test_sir_hierarchy.m
Random number generators used:
random.h
binomial.h
Feel free to use, copy or change the code.
However, please understand that I'm a student and I need to graduate, so I do
not provide support.
So if you want to use them, you're on your
own.
But, if you find intolerable mistakes in the code you may email me.
Back to Main Page