EEMS Fuzzy¶
The EEMS Fuzzy library consists of commands related to converting data to and from fuzzy space, and performing
operations in fuzzy space, such as FuzzyOr
and FuzzyAnd
.
- CvtToFuzzy(InFieldName, TrueThreshold, FalseThreshold, Direction)¶
Converts input values into fuzzy values using linear interpolation.
- Parameters:
InFieldName – (Result) The result to convert to fuzzy space.
TrueThreshold – (Number) Optional. The “true” value in fuzzy space. The default is
1
.FalseThreshold – (Number) Optional. The “false” value in fuzzy space. The default is
-1
.Direction – (String) Optional. If
LowToHigh
, the minimum input value is mapped toFalseThreshold
and the maximum input value mapped toTrueThreshold
. ForHighToLow
, this is reversed with the minimum input value mapped toTrueThreshold
and the maximum input value mapped toFalseThreshold
. The default isLowToHigh
.
- CvtToFuzzyZScore(InFieldName, TrueThreshold, FalseThreshold)¶
Converts input values into fuzzy values using linear interpolation based on Z Score.
- CvtToFuzzyCat(InFieldName, RawValues, FuzzyValues, DefaultFuzzyValue)¶
Converts integer input values into fuzzy based on user specification.
- Parameters:
InFieldName – (Result) The result to convert to fuzzy space.
RawValues – (List [Number]) A list of unique values from the input data.
FuzzyValues – (List [Number]) A list of fuzzy values that will be used to map values matching those in
RawValues
to fuzzy space. TheRawValues
andFuzzyValues
lists must be the same size.DefaultFuzzyValue – (Number) The default fuzzy value used to convert any input value not specified in
RawValues
.
- CvtToFuzzyCurve(InFieldName, RawValues, FuzzyValues)¶
Converts input values into fuzzy based on user-defined curve
- Parameters:
InFieldName – (Result) The result to convert to fuzzy space.
RawValues – (List [Number]) A list of unique values from the input data.
FuzzyValues – (List [Number]) A list of fuzzy values that will be used to map values matching those in
RawValues
to fuzzy space. TheRawValues
andFuzzyValues
lists must be the same size.
- CvtToFuzzyMeanToMid(InFieldName, IgnoreZeros, FuzzyValues)¶
Uses “CvtToFuzzyCurve” to create a non-linear transformation that is a good match for the input data.
- CvtToFuzzyCurveZScore(InFieldName, ZScoreValues, FuzzyValues)¶
Converts input values into fuzzy based on user-defined curve.
- Parameters:
InFieldName – (Result) The result to convert to fuzzy space.
ZScoreValues – (List [Number]) A list of z scores that will be used to map input values to fuzzy space.
FuzzyValues – (List [Number]) A list of fuzzy values that will be used to map values to fuzzy space. The
ZScoreValues
andFuzzyValues
lists must be the same size.
- CvtToBinary(InFieldName, Threshold, Direction)¶
Converts input values into binary 0 or 1 based on threshold.
- Parameters:
- FuzzyUnion(InFieldNames)¶
Produces an array in which each value is the fuzzy union (mean) of all input arrays at that index.
- FuzzyWeightedUnion(InFieldNames, Weights)¶
Produces an array in which each value is the weighted fuzzy union (mean) weighted of all input arrays at that index.
- FuzzySelectedUnion(InFieldNames, TruestOrFalsest, NumberToConsider)¶
Produces an array in which each value is the the fuzzy union (mean) of N Truest or Falsest of each input at that index.
- FuzzyOr(InFieldNames)¶
Produces an array in which each value is the fuzzy
OR
of all input arrays at that index.
- FuzzyAnd(InFieldNames)¶
Produces an array in which each value is the fuzzy
AND
of all input arrays at that index.
- FuzzyXOr(InFieldNames)¶
Produces an array in which each value is the fuzzy
XOR
of all input arrays at that index.
- FuzzyNot(InFieldNames)¶
Produces an array in which each value is the fuzzy
NOT
of all input arrays at that index.
- CvtFromFuzzy(InFieldName, TrueThreshold, FalseThreshold)¶
Converts input fuzzy values into non-fuzzy values using linear interpolation. This is essentially the reverse operation of
CvtToFuzzy()
.