rule
Class WorkingFuzzySet
java.lang.Object
|
+--rule.FuzzySet
|
+--rule.WorkingFuzzySet
- public class WorkingFuzzySet
- extends FuzzySet
The WorkingFuzzySet
class defines a fuzzy set where the
solution for a continous variable is developed.
Field Summary |
(package private) boolean |
setEmpty
|
Constructor Summary |
(package private) |
WorkingFuzzySet(ContinuousFuzzyRuleVariable parentVar,
java.lang.String setName,
double alphaCut,
double discourseLo,
double discourseHi)
Creates a fuzzy work set with the given parameters. |
Method Summary |
(package private) void |
addClone(java.lang.String cloneName)
Does nothing. |
(package private) void |
assert(FuzzySet inputSet)
Asserts the truth values from the given fuzzy set. |
(package private) void |
copy(FuzzySet inputSet)
Copies the truth values from the given fuzzy set. |
(package private) void |
copyOrAssertFzy(FuzzySet inputSet)
Copies the input set if the current working set is empty, otherwise
asserts the given set. |
(package private) void |
correlateWith(FuzzySet inputSet,
int corrMethod,
double truthValue)
Correlates the working set with the given input set using the given
correlation method and truth value. |
(package private) void |
implicateTo(WorkingFuzzySet inputSet,
int inferMethod)
Implicates the current working set to the given fuzzy set using the
given infer method. |
boolean |
isEmpty()
Checks if the working set is empty. |
(package private) void |
reset()
Resets the working fuzzy set by setting the empty flag to true and setting
the truth vector values to 0.0. |
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 |
setEmpty
boolean setEmpty
WorkingFuzzySet
WorkingFuzzySet(ContinuousFuzzyRuleVariable parentVar,
java.lang.String setName,
double alphaCut,
double discourseLo,
double discourseHi)
- Creates a fuzzy work set with the given parameters.
- Parameters:
parentVar
- the ContinuousFuzzyRuleVariable object that is the parent
of this fuzzy setsetName
- the String object that contains the set namealphaCut
- the double value for the alphacut thresholddiscourseLo
- the double value for the low end of the discoursediscourseHi
- the double value for the high end of the discourse
addClone
void addClone(java.lang.String cloneName)
- Does nothing.
- Parameters:
cloneName
- the String object that contains the cloned set name- Overrides:
- addClone in class FuzzySet
isEmpty
public boolean isEmpty()
- Checks if the working set is empty.
- Returns:
- the boolean value true if set is empty and false if it is not
copyOrAssertFzy
void copyOrAssertFzy(FuzzySet inputSet)
- Copies the input set if the current working set is empty, otherwise
asserts the given set.
- Parameters:
inputSet
- the FuzzySet object to be copied or asserted
correlateWith
void correlateWith(FuzzySet inputSet,
int corrMethod,
double truthValue)
- Correlates the working set with the given input set using the given
correlation method and truth value.
- Parameters:
inputSet
- the FuzzySet object that contains the fuzzy set to be
correlated withcorrMethod
- the integer that represents the correlation methodtruthValue
- the double truth value
implicateTo
void implicateTo(WorkingFuzzySet inputSet,
int inferMethod)
- Implicates the current working set to the given fuzzy set using the
given infer method.
- Parameters:
inputSet
- the WorkingFuzzySet object to implicate toinferMethod
- the integer that represents the infer method
reset
void reset()
- Resets the working fuzzy set by setting the empty flag to true and setting
the truth vector values to 0.0.
assert
void assert(FuzzySet inputSet)
- Asserts the truth values from the given fuzzy set.
- Parameters:
inputSet
- the FuzzySet object to be used for the assertion
copy
void copy(FuzzySet inputSet)
- Copies the truth values from the given fuzzy set.
- Parameters:
inputSet
- the FuzzySet object to be copied