Sign in Join
FPDoc Onlineexperiment

TAggregateAvg.InitAggregate procedure

Member of TAggregateAvgpublicIn unit fpExprPars

Initialize average aggregation

Declaration

pascal
procedure InitAggregate; override

Description

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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.