skbio.diversity.alpha.simpson_e#
- skbio.diversity.alpha.simpson_e(counts)[source]#
Calculate Simpson’s evenness index.
Simpson’s evenness (a.k.a., equitability) index \(E_D\) is defined as:
\[E_D = \frac{1}{D \times S}\]where \(D\) is the Simpson’s dominance index and \(S\) is the number of taxa in the sample.
That is, \(E_D\) is the ratio of the minimum-possible Simpson’s dominance index when all taxa have the same number of individuals: \(D_{min} = 1 / S\), versus the actual Simpson’s dominance index of the sample.
- Parameters:
- counts1-D array_like, int
Vector of counts.
- Returns:
- float
Simpson’s evenness index.
Notes
The implementation here is based on the description given in [1] and [2].
References