defuzz: Defuzzify a set of values.

Description Usage Arguments Value Examples

View source: R/FuzzyInferenceSystem.R

Description

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

Usage

1
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

1
Crisp_value = defuzz(1:10, c(1.5, 5), "centroid")

Example output



FuzzyR documentation built on May 19, 2021, 9:06 a.m.

Related to defuzz in FuzzyR...