FUZZ: Fuzzifies a variable modelled by trapezoidal or triangular...

Description Usage Arguments Value Examples

View source: R/Fuzzifier_16102018_bis.R

Description

Fuzzifies a variable modelled by trapezoidal or triangular fuzzy numbers

Usage

1
FUZZ(data, mi, si, PA)

Arguments

data

a data set.

mi

the index of the main-item containing the concerned variable.

si

the index of the sub-item of a given main-item mi.

PA

a vector of the linguistic terms of the considered variable.

Value

A fuzzification matrix composed by 4 columns c(p,q,r,s), and m lines, i.e. number of observations. No NA is allowed.

Examples

1
2
3
4
5
6
7
data <- matrix(c(1,2,3,2,2,1,1,3,1,2),ncol=1)
MF111 <- TrapezoidalFuzzyNumber(0,1,1,2)
MF112 <- TrapezoidalFuzzyNumber(1,2,2,3)
MF113 <- TrapezoidalFuzzyNumber(2,3,3,3)
PA11 <- c(1,2,3)
data.fuzzified <- FUZZ(data,mi=1,si=1,PA=PA11)
is.trfuzzification(data.fuzzified)

FuzzySTs documentation built on Nov. 23, 2020, 5:11 p.m.