defuzz: Convert fuzzy set into a crisp numeric value
Description
Take a discretized fuzzy set (i.e., a vector of membership degrees and a vector
of numeric values that correspond to that degrees) and perform a selected
type of defuzzification, i.e., conversion of the fuzzy set into a single
crisp value.
Function converts input fuzzy set into a crisp value. The definition of
input fuzzy set is provided by the arguments degrees and
values. These arguments should be numeric vectors of the same length,
the former containing membership degrees in the interval \([0, 1]\) and
the latter containing the corresponding crisp values: i.e., values[i]
has a membership degree degrees[i].