wm = 1 - sm
(where sm
is the selection coefficient for mutualists). wn = 1 - sn
(where sn
is the selection coefficient for nonmutualists).g = g(N)
(where N
is the prey population size).H' = -∑(piln(pi))
(where pi
is the proportion of individuals of species i).pi = ni / N
(where ni
is the number of individuals of species i and N
is total individuals). E = H' / ln(s)
, ranges from 0 (dominance by one species) to 1 (equal abundance).