Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Arithmetic-methods

Arithmetic Operations on Fuzzy Numbers


Description

Applies arithmetic operations using the extension principle and interval-based calculations.

Usage

## S4 method for signature 'numeric,FuzzyNumber'
e1 + e2 # e2 + e1

## S4 method for signature 'TrapezoidalFuzzyNumber,TrapezoidalFuzzyNumber'
e1 + e2

## S4 method for signature 
## 'PiecewiseLinearFuzzyNumber,PiecewiseLinearFuzzyNumber'
e1 + e2

## S4 method for signature 'PiecewiseLinearFuzzyNumber,numeric'
e1 + e2

## S4 method for signature 'PiecewiseLinearFuzzyNumber,FuzzyNumber'
e1 + e2 # calls as.PiecewiseLinearFuzzyNumber()

## S4 method for signature 'numeric,FuzzyNumber'
e1 - e2 # e2*(-1) + e1

## S4 method for signature 'TrapezoidalFuzzyNumber,TrapezoidalFuzzyNumber'
e1 - e2

## S4 method for signature 
## 'PiecewiseLinearFuzzyNumber,PiecewiseLinearFuzzyNumber'
e1 - e2

## S4 method for signature 'PiecewiseLinearFuzzyNumber,numeric'
e1 - e2

## S4 method for signature 'PiecewiseLinearFuzzyNumber,FuzzyNumber'
e1 - e2 # calls as.PiecewiseLinearFuzzyNumber()

## S4 method for signature 'FuzzyNumber,ANY'
e1 - e2 # -e1

## S4 method for signature 'numeric,FuzzyNumber'
e1 * e2 # e2 * e1

## S4 method for signature 'TrapezoidalFuzzyNumber,numeric'
e1 * e2

## S4 method for signature 
## 'PiecewiseLinearFuzzyNumber,PiecewiseLinearFuzzyNumber'
e1 * e2

## S4 method for signature 'PiecewiseLinearFuzzyNumber,FuzzyNumber'
e1 * e2 # calls as.PiecewiseLinearFuzzyNumber()

## S4 method for signature 'PiecewiseLinearFuzzyNumber,numeric'
e1 * e2

## S4 method for signature 'PiecewiseLinearFuzzyNumber,numeric'
e1 / e2

## S4 method for signature 
## 'PiecewiseLinearFuzzyNumber,PiecewiseLinearFuzzyNumber'
e1 / e2

## S4 method for signature 'PiecewiseLinearFuzzyNumber,FuzzyNumber'
e1 / e2 # calls as.PiecewiseLinearFuzzyNumber()

Arguments

e1

a fuzzy number or single numeric value

e2

a fuzzy number or single numeric value

Details

Implemented operators: +, -, *, / for piecewise linear fuzzy numbers. Also some versions may be applied on numeric values and trapezoidal fuzzy numbers.

Note that according to the theory the class of PLFNs is not closed under the operations * and /. However, if you operate on a large number of knots, the results should be satisfactory.

Thanks to Jan Caha for suggestions on PLFN operations.

Value

Returns a fuzzy number of the class PiecewiseLinearFuzzyNumber or TrapezoidalFuzzyNumber.

See Also


FuzzyNumbers

Tools to Deal with Fuzzy Numbers

v0.4-6
LGPL (>= 3)
Authors
Marek Gagolewski [aut, cre], Jan Caha [ctb]
Initial release
2019-02-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.