%AvgFloat function
Related pages:
REAL %AvgFloat( REAL in value, INT in deepTime, UNIVAL in calcTrigger, INT in maxValues )
value | The value that is included to the average. |
deepTime | Time depth of values in seconds. The value must be valid and > 0. |
calcTrigger | Calculating trigger - an object of any type. Its change causes a recalculation of the function. |
maxValues | Maximum values that are accepted by the function. The value must be valid and > 0. |
Before calculating the arithmetic average, the values that are out of
time depth (they are older than SysTime - deepTime) are removed from the
list. Then, the arithmetic average is calculated. If the list does not
contain any value, the final average is an invalid value.
The function returns an invalid value, if:
Related pages:
0 komentárov