Package libai.fuzzy.sets
Class ZShape
- java.lang.Object
-
- libai.fuzzy.sets.TwoParameterSet
-
- libai.fuzzy.sets.ZShape
-
- All Implemented Interfaces:
FuzzySet
,XMLSerializer
public class ZShape extends TwoParameterSet
Fuzzy set representing a Z-shape function. This function will equal 1 for any value to the left of a, and 0 for any value to the right of b. This function is a mirror of the S-shape.
-
-
Field Summary
-
Fields inherited from class libai.fuzzy.sets.TwoParameterSet
a, b
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
eval(double x)
Evaluate the membership of the set with the especified value.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class libai.fuzzy.sets.TwoParameterSet
load, toXMLString
-
-
-
-
Method Detail
-
eval
public double eval(double x)
Description copied from interface:FuzzySet
Evaluate the membership of the set with the especified value.- Parameters:
x
- Value to evaluate.- Returns:
- The membership value for the input.
-
-