skbio.diversity.alpha.berger_parker_d¶

skbio.diversity.alpha.
berger_parker_d
(counts)[source]¶ Calculate BergerParker dominance.
State: Experimental as of 0.4.0.
BergerParker dominance is defined as the fraction of the sample that belongs to the most abundant OTU:
\[d = \frac{N_{max}}{N}\]where \(N_{max}\) is defined as the number of individuals in the most abundant OTU (or any of the most abundant OTUs in the case of ties), and \(N\) is defined as the total number of individuals in the sample.
 Parameters
counts (1D array_like, int) – Vector of counts.
 Returns
BergerParker dominance.
 Return type
double
Notes
BergerParker dominance is defined in 1. The implementation here is based on the description given in the SDRIV online manual 2.
References