Package libai.fuzzy.sets
Class LeftLinearShape
- java.lang.Object
-
- libai.fuzzy.sets.TwoParameterSet
-
- libai.fuzzy.sets.LeftLinearShape
-
- All Implemented Interfaces:
FuzzySet
,XMLSerializer
public class LeftLinearShape extends TwoParameterSet
Fuzzy set representing a increasing linear function, in the [a, b] interval. Anything to the left of a will be 0, and anything to the right of b will be 1.
-
-
Field Summary
-
Fields inherited from class libai.fuzzy.sets.TwoParameterSet
a, b
-
-
Constructor Summary
Constructors Constructor Description LeftLinearShape(double a, double b)
Constructor.LeftLinearShape(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.
-
-