Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


FuzzyToolkitUoN (version 1.0)

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, vals, type)

Arguments

x
The range to be applied in the function (numeric vector).
vals
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

    Examples

    Run this code
    defuzz(1:10,c(1.5, 5, 1),"centroid")

    Run the code above in your browser using DataLab