How diverse is a community? D = 1 − Σ(n/N)² from species counts.
This tool needs JavaScript. Every notes page works without it.