Unit 'fpexprpars' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TAggregateAvg.UpdateAggregate

Update average aggregate with new value

Declaration

Source position: fpexprpars.pp line 690

public procedure TAggregateAvg.UpdateAggregate; override;

Description

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.


Documentation generated on: Dec 15 2025