A Ruby Agent Model of an epidemic, complete with Monte Carlo support.
This is code I submitted as a student. It is not suitable for production usage.
src/ contains the Ruby code. spec/ contains some rspecs. report.pdf is the report submitted with the code for assessment. It includes background information on agent models of epidemics and description of the design of the code.
$ ruby simulator.rb
Usage help:
$ ruby simulator.rb -h
The code has been tested with Ruby 1.8.7 on Mac OS X 10.6.