Initialize average aggregation
Source position: fpexprpars.pp line 689
public procedure TAggregateAvg.InitAggregate; override; |
The InitAggregate method initializes the average aggregate for a new aggregation cycle. It resets both the sum accumulator and the count of processed values to zero, preparing the aggregate for processing new values.
The method calls the parent TAggregateSum.InitAggregate to handle sum initialization and additionally resets the count tracking needed for average calculation.