ABLE 2.0.0 07/02/2003 10:25:01

com.ibm.able.data
Class AbleFuzzySetSegments

java.lang.Object
  |
  +--com.ibm.able.data.AbleLiteral
        |
        +--com.ibm.able.data.AbleFuzzySet
              |
              +--com.ibm.able.data.AbleFuzzySetSegments
All Implemented Interfaces:
AbleRd, java.io.Serializable

public class AbleFuzzySetSegments
extends AbleFuzzySet
implements java.io.Serializable

This class defines the Able data segments fuzzy set. A segments set is a surface specified by point/truth-value pairs, with the line segments interpolated between the points. At least two pairs must be given, and any values falling outside the range of points have a 0.0 truth value.

See Also:
Serialized Form

Fields inherited from class com.ibm.able.data.AbleFuzzySet
AlphaCutDefault, AlphaCutStrong, AlphaCutWeak, CorrelationMethodDefault, CorrelationMethodMinimise, CorrelationMethodProduct, DefuzzifyMethodAverageHeight, DefuzzifyMethodCentroid, DefuzzifyMethodDefault, DefuzzifyMethodMaxHeight, FUZZY_ADD, FuzzyInferenceMethodDefault, HedgeAbout, HedgeAbove, HedgeBelow, HedgeCloseTo, HedgeExtremely, HedgeGenerally, HedgeInVicinityOf, HedgeNot, HedgeNull, HedgePositively, HedgeSlightly, HedgeSomewhat, HedgeVery, MaxValues, MIN_MAX, myAlphaCut, myComplementFlag, myComplementName, myDomainHi, myDomainLo, myFlexFactor, myNumberOfValues, myParentVar, myPtBeg, myPtCenter, myPtEnd, myPtFlex, myPtLeft, myPtLeftCore, myPtRight, myPtRightCore, myScalarVecSav, mySetDir, mySetName, mySetType, myTruthVecSav, myTruthVector, myWeight, myWidth, PRODUCT_OR, SetDirectionDown, SetDirectionLeft, SetDirectionRight, SetDirectionUp, SetTypeBeta, SetTypeGaussian, SetTypeLinear, SetTypePi, SetTypeSegments, SetTypeShoulder, SetTypeSigmoid, SetTypeTrapezoid, SetTypeTriangle, SetTypeWork
 
Constructor Summary
AbleFuzzySetSegments(AbleFuzzyVariable theParentVar, java.lang.String theSetName, double theAlphaCut, int theNumberOfValues, double[] theScalarVector, double[] theTruthVector)
          Create a new fuzzy set.
 
Method Summary
 java.lang.String arlString()
          Return a formal rule language string representation of this fuzzy set.
 void replaceSegments(double[] theTruthVector)
           
 java.lang.String toString()
          Retrieve a string describing (the contents of) the object.
 java.lang.String xmlString()
          Return a formal XML string representation of this fuzzy set.
 
Methods inherited from class com.ibm.able.data.AbleFuzzySet
arlCRdString, Copyright, CorrelationMethod, CorrelationMethodRl, CorrelationMethodXml, DefuzzifyMethod, DefuzzifyMethodRl, DefuzzifyMethodXml, FuzzyInferenceMethod, FuzzyInferenceMethodRl, FuzzyInferenceMethodXml, getAlphaCut, getBooleanValue, getDataType, getDataTypeClass, getDataTypeClassName, getDomainHi, getDomainLo, getFlexFactor, getFuzzyValue, getGenericValue, getNumberOfValues, getNumericValue, getPtBeg, getPtCenter, getPtEnd, getPtFlex, getPtLeft, getPtLeftCore, getPtRight, getPtRightCore, getReferent, getScalarVector, getSetDir, getSetName, getSetProperties, getSetType, getStringValue, getTruthValues, getTruthVector, getValue, getWeight, getWidth, Hedge, HedgeRl, HedgeXml, setAlphaCut, SetDirection, SetDirectionRl, SetDirectionXml, SetType, SetTypeRl, SetTypeXml, traceString, xmlCRdString
 
Methods inherited from class com.ibm.able.data.AbleLiteral
bitwiseAND, bitwiseNOT, bitwiseOR, bitwiseShiftLeft, bitwiseShiftRight, bitwiseShiftRightZeroFill, bitwiseXOR, cmpEq, cmpGt, cmpGtEq, cmpIs, cmpLt, cmpLtEq, cmpNeq, compDivide, compMinus, compModulo, compMultiply, compPlus, compUnaryMinus, getDataTypeAsString, getReferents, getTemplateString, isConstant, logicalAND, logicalNOT, logicalOR
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbleFuzzySetSegments

public AbleFuzzySetSegments(AbleFuzzyVariable theParentVar,
                            java.lang.String theSetName,
                            double theAlphaCut,
                            int theNumberOfValues,
                            double[] theScalarVector,
                            double[] theTruthVector)
Create a new fuzzy set.
Parameters:
theParentVar - A reference to the fuzzy variable that contains this fuzzy set.

theSetName - The name of this fuzzy set.

theAlphaCut - The low cut-off value for this fuzzy set.

theNumberOfValues - The number of elements in the following two arrays. The number must not be larger than AbleFuzzySet.MaxValues.

theScalarVector - An array of points within the domain.

theTruthVector - For each point in the above array, that point's truth value, a number from 0.0 through 1.0.

Method Detail

arlString

public java.lang.String arlString()
Return a formal rule language string representation of this fuzzy set.
Returns:
A String describing the object in rule language.

xmlString

public java.lang.String xmlString()
Return a formal XML string representation of this fuzzy set.
Returns:
A String describing the object in XML.

replaceSegments

public void replaceSegments(double[] theTruthVector)

toString

public java.lang.String toString()
Retrieve a string describing (the contents of) the object.
Overrides:
toString in class AbleFuzzySet
Returns:
A String containing the current contents of the object.


ABLE 2.0.0 07/02/2003 10:25:01

(C) Copyright IBM Corporation 1999, 2003