rule
Class TriangleFuzzySet

java.lang.Object
  |
  +--rule.FuzzySet
        |
        +--rule.TriangleFuzzySet

public class TriangleFuzzySet
extends FuzzySet

The TriangleFuzzySet class defines a fuzzy set in the shape of the triangle.


Fields inherited from class rule.FuzzySet
alphaCut, domainHi, domainLo, parentVar, setName, setType, truthVector
 
Constructor Summary
(package private) TriangleFuzzySet(ContinuousFuzzyRuleVariable parentVar, java.lang.String name, double alphaCut, double ptLeft, double ptCenter, double ptRight)
          Creates a new Triangle 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 getCenterPoint()
          Retrieves the peak point of the fuzzy set.
 double getLeftPoint()
          Retrieves the beginning point of the fuzzy set.
 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
 

Constructor Detail

TriangleFuzzySet

TriangleFuzzySet(ContinuousFuzzyRuleVariable parentVar,
                 java.lang.String name,
                 double alphaCut,
                 double ptLeft,
                 double ptCenter,
                 double ptRight)
Creates a new Triangle fuzzy set.
Parameters:
parentVar - the ContinuousFuzzyRuleVariable object that is the parent
name - the String object that contains the name
alphaCut - the double value for the alpha cut
ptLeft - the double value of the beginning point of the fuzzy set
ptCenter - the double value of the peak of the fuzzy set
ptRight - the double value of the end point of the fuzzy set
Method Detail

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

getCenterPoint

public double getCenterPoint()
Retrieves the peak point of the fuzzy set.
Returns:
the double value of the peak point

getRightPoint

public double getRightPoint()
Retrieves the end point of the fuzzy set.
Returns:
the double value of the end point