Package libai.fuzzy.sets
Class RectangularShape
- java.lang.Object
-
- libai.fuzzy.sets.TwoParameterSet
-
- libai.fuzzy.sets.RectangularShape
-
- All Implemented Interfaces:
FuzzySet
,XMLSerializer
public class RectangularShape extends TwoParameterSet
Fuzzy set representing a constant function, in the [a, b] interval. This function becomes 1 only during the [a, b] interval.
-
-
Field Summary
-
Fields inherited from class libai.fuzzy.sets.TwoParameterSet
a, b
-
-
Constructor Summary
Constructors Constructor Description RectangularShape(double a, double b)
Constructor.RectangularShape(org.w3c.dom.Node xmlNode)
-
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.
-
-