The CP-IM is a general stochastic model for spatial spread and (bi-stable) cell-state differentiation. The model is an hybrid model mixing the Contact Process (CP), modelling bacterial colony growth on hard agar and the Ising Model (IM) modeling cell diffentiation and cell-cell interactions.
To model the CP, the code from the following repository is used:
https://github.com/jekeymer/Contact-Process
To implement the Random Number Generator (RNG) the following repository was used:
https://github.com/shivakar/rng-reference/blob/master/MT19937/mt64.h
implementing the following algorithm: