MATH.Statistics_LREAL (FB)
(CAA_Mathematics.library)
This function block will update the values of minimum, maximum and average with respect to the integral input parameter, which will be added to a set of integral data (stemming from previous calls). The arithmetic mean of the values is calculated by : .
Input:
xEnable
|
BOOL
|
reset (see
⇘
“CAA 指南”)
|
lrInput
|
LREAL
|
new data
|
Output:
lrMin
|
LREAL
|
minimum of set
|
lrMax
|
LREAL
|
maximum of set
|
lrAverage
|
LREAL
|
arithmetic mean of data
|
xOverrun
|
BOOL
|
will be set in case of overflow; the module will compensate this by a minor weighting of the old data leading to inaccuracy of the result
|