Fuzzy.Difference {FuzzySTs}R Documentation

Calculates the difference between two fuzzy numbers

Description

Calculates the difference between two fuzzy numbers

Usage

Fuzzy.Difference(X, Y, alphacuts = FALSE, breakpoints = 100)

Arguments

X

a fuzzy number of any type.

Y

a fuzzy number of any type.

alphacuts

fixed by default to "FALSE". No alpha-cuts are printed in this case.

breakpoints

a positive arbitrary integer representing the number of breaks chosen to build the numerical alpha-cuts. It is fixed to 100 by default.

Value

If the parameter alphacuts="TRUE", the function returns a matrix composed by 2 vectors representing the left and right alpha-cuts. For this output, is.alphacuts = TRUE. If the parameter alphacuts="FALSE", the function returns a trapezoidal fuzzy number given by the quadruple (p,q,r,s), such that p \le q \le r \le s.

Examples

X <- TrapezoidalFuzzyNumber(5,6,7,8)
Y <- TrapezoidalFuzzyNumber(1,2,3,4)
Fuzzy.Difference(X,Y)

[Package FuzzySTs version 0.3 Index]