Calculate the true Shannon index based on proportions

true_shannon(input)

Arguments

input

A vector of proportions.

Value

The Shannon index of the population given by input.

Note

This function is intended for population-level data. If you are dealing with a microbial sample, use DivNet instead.