The function checks if the input data are given in the correct form of a matrix of dimension n x 4 containing n trapezoidal fuzzy numbers characterized by their four values inf0,inf1,sup1,sup0 each. The following conditions have to be fulfilled: (1) the number of columns of the matrix must be 4 (the four values characterizing each trapezoidal fuzzy number), (2) the four values of each trapezoidal number have to be non-decreasing. This function is used internally in almost all the other functions to do a preliminary checking if the input data are in the correct form.
Usage
checkingTra(F)
Arguments
F
can be any matrix.
Value
The function returns the value 1 if the input fulfills all conditions, if not, the value 0 is returned.
# Example 1:F=matrix(c(1,2,3,4),nrow=1)
c=checkingTra(F)
c# Example 2:F=matrix(c(1,2,3,4),nrow=2)
c=checkingTra(F)
c# Example 3:F=matrix(c(1,2,1,4),nrow=1)
c=checkingTra(F)
c