Skip to content
Serge Stinckwich edited this page Jan 15, 2016 · 39 revisions

Kendrick is a Domain-Specific Language and Simulation Plaform for mathematical epidemiology modeling. The documentation herein will provide all the information necessary to understand how to use Kendrick in order to build, use and analyze epidemiological models. Kendrick is named following the person who has successfully used compartmental model in modelling the propagation of infectious diseases. Kendrick is specifically an embedded language inside the host language Smalltalk, which is integrated in the platform Pharo/Moose – an open source platform for software development and data analysis. In fact, Kendrick is developed by using a set of available tools of Moose such as: PetitParser, Roassal, Scismalltalk, STON. Such tools help to build the own parser of Kendrick and to visualise the simulation results.

In order to facilitate the usages of domain experts in epidemiological modelling without programming, the textual DSL Kendrick allows to easily specify a compartmental model of epidemics and to simulate it through deterministic, stochastic or individual-based formalisms:

smalltalk    
| model |
	model := KEModel new.
	model population: (KEPopulation size: 100000).
	model attributes: 
		{#status->#(#S #I #R)}.
	model atCompartment: { #status->#S } put: 99999.
	model atCompartment: { #status->#I } put: 1.
	model atCompartment: { #status->#R } put: 0.
	model addParameters: {#beta->0.0052. #gamma->52}.
	model
	      addTransitionFrom: '{#status: #S}'
	      to: '{#status: #I}'
	      probability: [ :m | 
			(m atParameter: #beta) * 
			(m atCompartment: {#status->#I}) ].
	model 
              addTransitionFrom: '{#status: #I}' 
	      to: '{#status: #R}' 
	      probability: [ :m | m atParameter: #gamma ].

Custom sidebar of the Kendrick Wiki

Basic-SIR

SIR---Metapopulation

Clone this wiki locally