powered by
Defuzzifies a given set of values using a specified range and defuzzification type producing a crisp value.
defuzz(x, mf, type)
The range to be applied in the function (numeric vector).
The values to be applied in the function (numeric vector).
The defuzzification method type, which should be either 'centroid', 'bisector', 'mom', 'som' or 'lom'.
Returns a defuzzified crisp value (double).
# NOT RUN { Crisp_value = defuzz(1:10, c(1.5, 5), "centroid") # }
Run the code above in your browser using DataLab