computes shannon index from a distribution (faster than version implemented in vegan package)

get_Shannon(Distrib)

Arguments

Distrib

Distribution

Value

Shannon index correspnding to the distribution