decomposer: Decomposer

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

Description

Given a dataframe X the function first calls checking in order to test if X is in the desired format. If yes, the dataframe X (polygonal fuzzy number) is expressed as a dataframe with (nrow(X)+1) rows as described in the paper [1] below, if no, NULL is returned. The main aim of decomposer is to provide the simulator-function called generator with the correct input.

Usage

1

Arguments

X

...dataframe, if checking(X)=1 the decomposed version of X is returned.

Details

See examples

Value

In case checking(X)=1 decomposer returns a dataframe with (nrow(X+1))-rows (see [1]), otherwise NA 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>

References

[1] Gonzalez-Rodriguez, G., Colubi, A., Trutschnig, W.: Simulation of fuzzy random variables, Inf.Sci., 179(5), pp. 642-653 (2009)

See Also

See also checking, generator

Examples

1
2
3
4
5
#Example:
 data(XX)
 A<-decomposer(XX[[2]])
 A<-decomposer(XX[[1]])
head(A)

Example output

       coor     alpha
1 0.5847283 0.0000000
2 0.1502657 0.1111111
3 0.1146021 0.2222222
4 0.1014701 0.3333333
5 0.0978677 0.4444444
6 0.1014701 0.5555556

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