GSI {FuzzyStatTra} | R Documentation |
Gini-Simpson diversity index of a trapezoidal fuzzy sample
Description
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
).
Usage
GSI(F)
Arguments
F |
matrix of dimension |
Details
See examples
Value
The function returns the Gini-Simpson diversity index, which is a real number.
Note
In case you find (almost surely existing) bugs or have recommendations for improving the functions comments are welcome to the above mentioned mail addresses.
Author(s)
Asun Lubiano <lubiano@uniovi.es>, Sara de la Rosa de Saa <rosasara@uniovi.es>
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)
See Also
Examples
# Example 1:
F=SimulCASE1(50)
GSI(F)
# Example 2:
F=matrix(c(1,0,2,3),nrow=1)
GSI(F)