GSI: Gini-Simpson diversity index of a trapezoidal fuzzy sample

Description Usage Arguments Details Value Note Author(s) References See Also Examples

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

1
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

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

checkingTra

Examples

1
2
3
4
5
6
7
# Example 1:
F=SimulCASE1(50)
GSI(F)

# Example 2:
F=matrix(c(1,0,2,3),nrow=1)
GSI(F)

FuzzyStatTra documentation built on May 2, 2019, 10:59 a.m.