fzarray: Fuzzy array

View source: R/fzarray.R

fzarrayR Documentation

Fuzzy array

Description

This function constructs a fuzzy array of class fzarray (and fzn), which is a list of fuzzy numbers of class fzn. It can be used for adding elements to a fuzzy array, or concatenate several fuzzy arrays.

Usage

fzarray(...)

Arguments

...

Fuzzy numbers of class fzn or fuzzy arrays of class fzarray. It can be a list of fuzzy numbers of class fzn.

Value

An object of class fzarray.

Examples

x <- fzn(alpha = c(0, 0.1, 0.5, 0.8, 1),
         l = c(1, 3, 3, 4.5, 5),
         u = c(12, 10, 9, 6.5, 6))
c <- fuzzyfy(1)
# Construct a fuzzy array with x and c
fza1 <- fzarray(x, c)
# Construct a fuzzy array from crisp values using function fuzzyfy
fza2 <- fuzzyfy(c(1, 2, 3))
# Construct a fuzzy array whose elements are x, c, 1, 2, 3 and x again
fza3 <- fzarray(fza1, fza2, x)


rbensua/fuzzyr documentation built on May 20, 2023, 7:11 a.m.