EEMS Basic¶
The EEMS Basic library contains several commands for performing basic, non-fuzzy operations on data. These include arithmetic commands (e.g., Sum, AMinusB), aggregation commands, and utility commands.
- Copy(InFieldName)¶
Creates a copy of the input data.
- Parameters:
InFieldName – (Result) The result to copy.
- Sum(InFieldNames)¶
Produces an array in which each value is the sum of all input arrays at that index.
- WeightedSum(InFieldNames, Weights)¶
Produces an array in which each value is the sum of all input arrays at that index, weighted by the input weights. E.g., values
8
and10
, with weights of0.6
and0.4
respectively will produce a result of8.8
.
- Multiply(InFieldNames)¶
Multiplies multiple results together.
- ADividedByB(A, B)¶
Performs the operation
A / B
.
- Minimum(InFieldNames)¶
Produces an array in which each value is the minimum of all input arrays at that index.
- Maximum(InFieldNames)¶
Produces an array in which each value is the maximum of all input arrays at that index.
- Mean(InFieldNames)¶
Produces an array in which each value is the mean of all input arrays at that index.
- WeightedMean(InFieldNames, Weights)¶
Produces an array in which each values is the mean of all inputs arrays at that index, weighted by the input weights. E.g., values
8
and10
with weights of2
and1
respectively will produce a result of8.667
- Normalize(InFieldName, StartVal, EndVal)¶
Normalize values to a specified range, where the minimum value will be mapped to
StartVal
, the maximum value will be mapped toEndVal
, and values between will be processed by linear interpolation betweenStartVal
andEndVal
.
- NormalizeZScore(InFieldName, TrueThresholdZScore, FalseThresholdZScore, StartVal, EndVal)¶
Converts input values into normalized values using linear interpolation based on Z Score.
- Parameters:
InFieldName – (Result) The result to normalize
TrueThresholdZScore – (Number) Optional. The normalized “True” value. Defaults to
1
.FalseThresholdZScore – (Number) Optional. The normalized “False” value. Defaults to
0
.StartVal – (Number) Optional. The lowest value of the normalized array. Defaults to
0
.EndVal – (Number) Optional. The highest value of the normalized array. Defaults to
1
.
- NormalizeCat(InFieldName, RawValues, NormalValues, DefaultNormalValue)¶
Converts integer input values into normalized values based on user specification.
- Parameters:
InFieldName – (Result) The result to convert to normalize.
RawValues – (List [Number]) A list of unique values from the input data.
NormalValues – (List [Number]) A list of normalized values that will be used to normalize values matching those in
RawValues
. TheRawValues
andNormalValues
lists must be the same size.DefaultNormalValue – (Number) The default normal value used to convert any input value not specified in
RawValues
.
- NormalizeCurve(InFieldName, RawValues, NormalValues)¶
Converts input values into normalized values based on user-defined curve
- Parameters:
InFieldName – (Result) The result to normalize.
RawValues – (List [Number]) A list of unique values from the input data.
NormalValues – (List [Number]) A list of normalized values that will be used to map values matching those in
RawValues
to normalized ones. TheRawValues
andNormalValues
lists must be the same size.
- NormalizeMeanToMid(InFieldName, IgnoreZeros, NormalValues)¶
Uses “NormalizeCurve” to create a non-linear transformation that is a good match for the input data.
- NormalizeCurveZScore(InFieldName, ZScoreValues, NormalValues)¶
Converts input values into narmalized values based on user-defined curve
- Parameters:
InFieldName – (Result) The result to normalize.
ZScoreValues – (List [Number]) A list of z scores that will be used to map input values to normalized ones.
NormalValues – (List [Number]) A list of normalized values that will be used to map values to normalized ones. The
ZScoreValues
andNormalValues
lists must be the same size.
- PrintVars(InFieldNames, OutFileName)¶
Print or write results for debugging purposes. If
OutFileName
is provided, the results will be written to that file, otherwise they will be printed toSTDOUT
.