skbio.math.diversity.alpha.margalef

skbio.math.diversity.alpha.margalef(counts)[source]

Calculate Margalef’s richness index.

Assumes log accumulation.

Parameters:

counts : 1-D array_like, int

Vector of counts.

Returns:

double

Margalef’s richness index.

Notes

Based on the description in [R46].

References

[R46](1, 2) Magurran, A E 2004. Measuring biological diversity. Blackwell. pp. 76-77.