Description Usage Arguments Details Value Note Author(s) See Also Examples
The function first calls checking2
in order to check if the input data X
defines a polygonal fuzzy number. If all conditions are satisfied the function transforms the input X
into a dataframe with the chosen number nl
of levels (default is nl
=101) by doing linear interpolation, and returns this dataframe.
1 | translator(X, nl = 101, pic = 0)
|
X |
...dataframe for which |
nl |
...number of levels of the output dataframe (fuzzy number), by default 101, must be at least 2. |
pic |
...numeric, if |
See examples
In case checking2(X)=1 translator
returns a dataframe (fuzzy number) with nl
number of alpha-levels, otherwise the input is returned unchanged.
In case you find (almost surely existing) bugs or have recommendations for improving the functions comments are welcome to the above mentioned mail addresses.
Wolfgang Trutschnig <wolfgang@trutschnig.net>, Asun Lubiano <lubiano@uniovi.es>
See Also as checking2
, checking
1 2 3 4 5 6 7 8 9 10 | #Example 1:
X<-data.frame(x=c(-2,-0.75,-0.25,0.5,1),alpha=c(0,0.6,1,1,0))
E<-translator(X,3)
E
#Example 2:
data(XX)
E<-translator(XX[[3]],11, pic=1)
E
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.