\(X\) is the average number of sheltered individuals
\(N\) is the total number of individuals
\(\mu_i\) is the individual rate of entering the shelter \(i\)
\(\theta_i\) is individual rate of leaving the shelter \(i\)
\(k\) is a threshold parameter
\(m\) is a cooperativity parameter
Enter the parameter values to see the outcome of how many individuals have ended up being aggregated inside the shelter. The Monte Carlo simulation is written in javascript and simulates equation (1).