skbio.diversity.alpha.
margalef
(counts)[source]¶Calculate Margalef’s richness index.
State: Experimental as of 0.4.0.
Margalef’s D is defined as:
where \(S\) is the number of OTUs and \(N\) is the total number of individuals in the sample.
Assumes log accumulation.
Parameters: | counts : 1-D array_like, int
|
---|---|
Returns: | double
|
Notes
Based on the description in [R35].
References
[R35] | (1, 2) Magurran, A E 2004. Measuring biological diversity. Blackwell. pp. 76-77. |