Update average aggregate with new value
Source position: fpexprpars.pp line 690
public procedure TAggregateAvg.UpdateAggregate; override; |
The UpdateAggregate method processes a new value for the average calculation by updating both the running sum and incrementing the count of processed values. It leverages the parent TAggregateSum.UpdateAggregate for sum handling.
Each call to this method adds one value to the sum and increases the count by one, maintaining the data needed to calculate the final average when requested.