public class FuzzySet
extends java.lang.Object
Constructor and Description |
---|
FuzzySet()
Constructs an empty fuzzy set.
|
Modifier and Type | Method and Description |
---|---|
void |
add(FuzzyNumber fNumb)
Add a fuzzy number object to the set.
|
double |
getOutput(double input)
Computes the real-valued fuzzy centroid (centre of gravity) as a
non-normalised average of the degree of membership in each fuzzy number.
|
void |
remove(FuzzyNumber fNumb)
Remove a fuzzy number object from the set.
|
public void add(FuzzyNumber fNumb)
public void remove(FuzzyNumber fNumb)
public double getOutput(double input)
input
- - The number for which the fuzzy rules are to be applied.