Research Article
Spatially Extended SHAR Epidemiological Framework of Infectious Disease Transmission
Algorithm 1
Pseudocode for the infection cluster computing algorithm.
If a new infection occurred at in location then update cluster info as follows: | Create -th column of cluster configuration matrix | Copy all entries of in | Update information in as follows: | If no neighbours of are infected use new cluster label | | Else | Define vector of indicators of neighboring sites | Remove zeros and possible repetitions | If only one label remains then assign the same label to location | | Else | Compute number of individuals in each neighboring cluster | Assign to location the label of the largest cluster | End if | Update total number of clusters | Compute number of individuals per cluster | End if | End if |
|