Centroid
Centroid
¶
Bases: IntegralDefuzzifier
Integral defuzzifier that computes the centroid of a fuzzy set.
related
Functions¶
defuzzify
¶
Compute the centroid of a fuzzy set.
The defuzzification process integrates over the fuzzy set using the given range. The integration algorithm is the midpoint rectangle method (https://en.wikipedia.org/wiki/Rectangle_method).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
term |
Term
|
fuzzy set to defuzzify |
required |
minimum |
float
|
value to start defuzzification |
required |
maximum |
float
|
value to end defuzzification |
required |
Returns:
Type | Description |
---|---|
Scalar
|
\(x\)-coordinate of the centroid of the fuzzy set |