Compute the p
by p
matrix \(\mathcal{D}\) whose columns describe
how potentially infectious person time from persons in that patch are dispersed
across other patches.
$$\mathcal{D} = \mbox{diag}\left(W \right) \cdot \beta^T \cdot \mbox{diag}\left(bDH\right) \cdot \beta$$
metric_calD(W, beta, b, D, H)
a numeric matrix