\(J_{rr}\) counts joins between two units of colour r and
\(J_{rs}\) (r after s) joins between colours r and s, each as half the
weight sum over ordered pairs; Jtot sums the different-colour joins.
Expectations and variances are the nonfree sampling moments of Cliff
and Ord (1981, pp. 19-20), exactly as spdep::joincount.multi
(N counts the units with neighbours); deviates are
(J - E) / sqrt(Var). Colours are the sorted distinct labels.
