checkingTra: Checking correct data format (as matrix)

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

Description

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

1

Arguments

F

can be any matrix.

Details

See examples

Value

The function returns the value 1 if the input fulfills all conditions, if not, the value 0 is returned.

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>

See Also

checking, filterNA

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# 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

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