Closed
Description
When the abundance matrix mostly has small non integer values (because of standardisation), S_PIE is negative:
> library(mobr) # recently installed from the dev branch
> set.seed(42)
> calc_div(runif(100, 0, 1.3), 'S_PIE', scales = 'alpha')
[1] -711.2691
Printing a warning could help draw attention to these communities or the functioning of S_PIE?