Learn R Programming

FuzzyStatTra (version 1.0)

Rho1Tra:

Description

This function calculates the 1-norm distance between the trapezoidal fuzzy numbers contained in two matrixes, which should be given in the desired format. For this, the function first checks if the input matrixes R and S are in the correct form (tested by checkingTra).

Usage

Rho1Tra(R, S)

Arguments

R
matrix of dimension r x 4 containing r trapezoidal fuzzy numbers characterized by their four values inf0,inf1,sup1,sup0. The function first calls checkingTra to check if the matrix R has the correct format.
S
matrix of dimension s x 4 containing s trapezoidal fuzzy numbers characterized by their four values inf0,inf1,sup1,sup0. The function first calls checkingTra to check if the matrix S has the correct format.

Value

The function returns a matrix of dimension r x s containing the 1-norm distances between the trapezoidal fuzzy numbers of the matrix R and the trapezoidal fuzzy numbers of the matrix S.

Details

See examples

See Also

checkingTra, Rho1

Examples

Run this code
# Example 1:
F=SimulCASE2(4)
S=SimulCASE3(5)
Rho1Tra(F,S)

# Example 2:
F=matrix(c(1,1,0,2,3,4,5,6),nrow=2)
S=SimulCASE3(5)
Rho1Tra(F,S)

Run the code above in your browser using DataLab