Learn R Programming

FuzzyR (version 2.3.2)

defuzz: Defuzzify a set of values.

Description

Defuzzifies a given set of values using a specified range and defuzzification type producing a crisp value.

Usage

defuzz(x, mf, type)

Arguments

x

The range to be applied in the function (numeric vector).

mf

The values to be applied in the function (numeric vector).

type

The defuzzification method type, which should be either 'centroid', 'bisector', 'mom', 'som' or 'lom'.

Value

Returns a defuzzified crisp value (double).

Examples

Run this code
# NOT RUN {
Crisp_value = defuzz(1:10, c(1.5, 5), "centroid")
# }

Run the code above in your browser using DataLab