Learn R Programming

SAFD (version 2.1)

decomposer: Decomposer

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

decomposer(X)

Arguments

X

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

Value

In case checking(X)=1 decomposer returns a dataframe with (nrow(X+1))-rows (see [1]), otherwise NA is returned.

Details

See examples

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

Run this code
# NOT RUN {
#Example:
 data(XX)
 A<-decomposer(XX[[2]])
 A<-decomposer(XX[[1]])
head(A)
# }

Run the code above in your browser using DataLab