sign: Sign of LR fuzzy number

Description Usage Arguments Value Author(s) Examples

Description

To distinguish and determining the sign of a LR fuzzy number one can use from this function. In other words, the function sign is able to categorize the class of all LR fuzzy numbers into three kinds positive, negative and non of them (non-positive and non negative).

Usage

1
sign(M)

Arguments

M

A LR, RL or L fuzzy number

Value

The "sign" function only return three charactical values: "Positive", "Negative" or "non-positive and non negative".

Author(s)

Abbas Parchami

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Left.fun  = function(x)  { (1-x)*(x>=0)}

M = L(2,4,3)
support(M)
sign(M)

sign( L(5,4,3) )

( sign( L(5,4,3) ) == "Positive" )

## The function is currently defined as
function (M) 
{
    supp = support(M)
    if (supp[1] > 0) {
        return(noquote(paste0("Positive")))
    }
    else {
        if (supp[2] < 0) {
            return(noquote(paste0("Negative")))
        }
        else {
            return(noquote(paste0("non-positive and non negative")))
        }
    }
  }

Calculator.LR.FNs documentation built on May 2, 2019, 8:25 a.m.