Gini-Simpson diversity index of a trapezoidal fuzzy sample
Gini-Simpson diversity index of a trapezoidal fuzzy sample
This function calculates the Gini-Simpson diversity index for a sample of trapezoidal fuzzy numbers contained in a matrix F. The function first checks if the input matrix F is given in the correct form (tested by checkingTra).
GSI(F)
Arguments
F: matrix of dimension n x 4 containing n trapezoidal fuzzy numbers characterized by their four values inf0,inf1,sup1,sup0. The function implicitly checks if the matrix is in the correct form (tested by checkingTra).
Details
See examples
Returns
The function returns the Gini-Simpson diversity index, which is a real number.
References
[1] De la Rosa de Saa, S.; Gil, M.A.; Gonzalez-Rodriguez, G.; Lopez, M.T.; Lubiano M.A.: Fuzzy rating scale-based questionnaires and their statistical analysis, IEEE Trans. Fuzzy Syst. 23(1), pp. 111-126 (2015)
In case you find (almost surely existing) bugs or have recommendations for improving the functions comments are welcome to the above mentioned mail addresses.
See Also
checkingTra
Examples
# Example 1:F=SimulCASE1(50)GSI(F)# Example 2:F=matrix(c(1,0,2,3),nrow=1)GSI(F)