Jeremy Leach
Senior Member
This module enables precise calculation of a running average (arithmetic mean) of Word values. Designed for 28X1 but could be adapted.
FEATURES:
 Does not need to keep a record of all samples.
 The EXACT average is held as a Whole and Remainder part.
The Remainder is the remainder of the division by the SampleCount.
 There is NO loss of accuracy as new averages are calculated.
 The sample count can be up to 65535.
See my other post on modules for 28X1.
FEATURES:
 Does not need to keep a record of all samples.
 The EXACT average is held as a Whole and Remainder part.
The Remainder is the remainder of the division by the SampleCount.
 There is NO loss of accuracy as new averages are calculated.
 The sample count can be up to 65535.
See my other post on modules for 28X1.
Attachments

6 KB Views: 139