defuzz {FuzzyR} | R Documentation |
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
Crisp_value = defuzz(1:10, c(1.5, 5), "centroid")
[Package FuzzyR version 2.3.2 Index]