Diversity function

Hill number of a community