Skip to content

Social Distancing

The social distancing measure works by altering the distances between particles. The positions of the particles, however, are not changed. This is so because only a matrix of distances is used to account for contacts between particles, and therefore disease transmission. Therefore the social distancing works by altering the entries of this matrix.

Important

Social distancing only works with distance mechanics, to use it the user must set use_networks to False.

Parameter Type Description Default Value
social_distancing_fraction float Percentage of the population that adheres to the social distancing measure. 0.
social_distancing_min_distance float Minimum distance in meters for which the social distancing measure may take effect. 2
social_distancing_mode int Selects one of three possible social distancing measures:
  • 1: selects a version of social distancing that overrides the entries of the distance matrix whenever the are smaller than social_distancing_min_distance keyword's value. The value overridden to is social_distancing_min_distance keyword's value itself.
  • 2: the value overridden is some random value between the actual value and social_distancing_min_distance keyword's value.
  • 3: the distance matrix obtained with mode 2 is made symmetric through the operation M = (M+M^t)/2.
1