Skip to contents

Calculate the Shannon diversity index (H') (Shannon and Weaver, 1949) give a numbers at age vector.

Usage

shannon_diversity(naa)

Arguments

naa

numbers-at-age vector

Details

H' = sum(naa*log(naa))