checking2: Checking correct data format (weak version)

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

Description

The function checks if the input data defines a polygonal fuzzy number, i.e. a dataframe with the columns "x" and "alpha" fulfilling the following conditions: (1) alpha-values have to be in [0,1] with the minimum alpha-level being 0 and maximum being 1, (2) the x-values have to be non-missing and non-decreasing, (3) the alpha-levels have to increase from 0 to 1 and afterwards decrease from 1 to 0 (not necessarily in the same way). The function is only used for the translator function.

Usage

1
checking2(X, com = 1)

Arguments

X

...can be any data frame.

com

...numeric, if com=1 then, in case of an error, a comment is printed. By default com=1.

Details

See examples

Value

The function returns the value 1 if the input fulfills all conditions, if not, 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)

Wolfgang Trutschnig <wolfgang@trutschnig.net>, Asun Lubiano <lubiano@uniovi.es>

See Also

See Also as checking, translator

Examples

1
2
3
4
5
#Example:
 U<-data.frame(x=c(-1,0,1),alpha=c(0,1,0))
 #a<-checking(U,)
 a<-checking2(U,)
a

SAFD documentation built on July 3, 2019, 5:02 p.m.