Defuzzification is a transformation that extracts the crisp values from the linguistic terms.
defuzzifier(data, rule = NULL, range.output = NULL, names.varoutput = NULL, varout.mf = NULL, miu.rule, type.defuz = NULL, type.model = "TSK", func.tsk = NULL)
a matrix (\(m \times n\)) of data, where \(m\) is the number of instances and \(n\) is the number of variables.
a list or matrix of fuzzy IF-THEN rules, as discussed in
a matrix (\(2 \times n\)) containing the range of the output data.
a list for giving names to the linguistic terms. See
a matrix constructing the membership function of the output variable.
the results of the inference module. See
the type of defuzzification to be used as follows.
WAM means weighted average method,
FIRST.MAX means first maxima,
LAST.MAX means last maxima,
MEAN.MAX means mean maxima,
COG means modified center of gravity (COG).
the type of the model that will be used in the simulation.
means we use Mamdani or Takagi Sugeno Kang model, respectively.
a matrix used to build the linear equation for the consequent part
if we are using Takagi Sugeno Kang. See also
A matrix of crisp values
In this function, there exist two kinds of models which are based on the Mamdani and Takagi Sugeno Kang model. For the Mamdani model there are five methods for defuzzifying a linguistic term \(A\) of a universe of discourse \(Z\). They are as follows:
weighted average method (
first of maxima (
last of maxima (
mean of maxima (
modified center of gravity (