For a vector x
of raw species counts, the McIntosh evenness measure
is $$E = \frac{\sqrt{\sum_i x_i^2}}{\sqrt{(N - S + 1)^2 + S - 1},}$$
where \(N\) is the total number of counts and \(S\) is the total
number of species observed.
This index is appropriate only for raw counts, not transformed counts or
proportions.
Equivalent to mcintosh_e()
in skbio.diversity.alpha
.