rule
Class TrapezoidFuzzySet
java.lang.Object
|
+--rule.FuzzySet
|
+--rule.TrapezoidFuzzySet
- public class TrapezoidFuzzySet
- extends FuzzySet
The TrapezoidFuzzySet
class defines a fuzzy set in the
shape of the trapezoid.
Constructor Summary |
(package private) |
TrapezoidFuzzySet(ContinuousFuzzyRuleVariable parentVar,
java.lang.String name,
double alphaCut,
double ptLeft,
double ptLeftCore,
double ptRightCore,
double ptRight)
Creates a new Trapezoid fuzzy set. |
Method Summary |
(package private) void |
addClone(java.lang.String newName)
Creates a clone of this fuzzy set and adds it to the parent variable. |
double |
getLeftCorePoint()
Retrieves the beginning point of the plateau. |
double |
getLeftPoint()
Retrieves the beginning point of the fuzzy set. |
double |
getRightCorePoint()
Retrieves the end point of the plateau. |
double |
getRightPoint()
Retrieves the end point of the fuzzy set. |
Methods inherited from class rule.FuzzySet |
aboveAlphaCut,
applyAlphaCut,
applyHedgeConDil,
applyHedges,
defuzzify,
getAlphaCut,
getDomainHi,
getDomainLo,
getNumericValue,
getReferent,
getScalar,
getSetHeight,
getSetName,
getSetType,
getTruthValue,
getTruthValues,
membership,
normalise,
segmentCurve,
toString,
vectorInterpret |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
TrapezoidFuzzySet
TrapezoidFuzzySet(ContinuousFuzzyRuleVariable parentVar,
java.lang.String name,
double alphaCut,
double ptLeft,
double ptLeftCore,
double ptRightCore,
double ptRight)
- Creates a new Trapezoid fuzzy set.
- Parameters:
parentVar
- the ContinuousFuzzyRuleVariable object that is the parentname
- the String object that contains the namealphaCut
- the double value for the alpha cutptLeft
- the double value of the beginning point of the fuzzy setptLeftCore
- the double value of the beginning point of the plateauptLeftCore
- the double value of the end point of the plateauptRight
- the double value of the end point of the fuzzy set
addClone
void addClone(java.lang.String newName)
- Creates a clone of this fuzzy set and adds it to the parent variable.
- Parameters:
newName
- the String object that contains the name of the clone- Overrides:
- addClone in class FuzzySet
getLeftPoint
public double getLeftPoint()
- Retrieves the beginning point of the fuzzy set.
- Returns:
- the double value of the beginning point
getLeftCorePoint
public double getLeftCorePoint()
- Retrieves the beginning point of the plateau.
- Returns:
- the double value of the beginning point of the plateau
getRightCorePoint
public double getRightCorePoint()
- Retrieves the end point of the plateau.
- Returns:
- the double value of the end point of the plateau
getRightPoint
public double getRightPoint()
- Retrieves the end point of the fuzzy set.
- Returns:
- the double value of the end point