[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Internally used class for average aggregate functions
Source position: fpexprpars.pp line 685
type TAggregateAvg = class(TAggregateSum) |
||
public |
||
procedure InitAggregate; override; |
|
Initialize average aggregation |
procedure UpdateAggregate; override; |
|
Update average aggregate with new value |
procedure GetNodeValue(); override; |
|
Calculate the average from aggregated values |
end; |
|
Internally used class for average aggregate functions |
|
| | | ||
|
Internally used class for sum aggregate functions |
|
| | | ||
|
Internally used Base class for aggregate expressions |
|
| | | ||
|
Internally used class for representing function calls in expression trees |
|
| | | ||
|
Internally used class for identifier nodes in expression trees |
|
| | | ||
|
Class for representing nodes in expression trees |
|
| | | ||
The TAggregateAvg class implements the average (mean) aggregate function, which calculates the arithmetic mean of all processed numeric values. It extends TAggregateSum to leverage summation functionality while adding count tracking for average calculation.
The average function handles different numeric types and ensures appropriate precision in the final result. Division by zero is handled appropriately when no values have been processed.
This class is used internally by the TFPExpressionParser class to construct an AST (Abstract Syntax Tree). There is normally no need for you to use or instantiate this class directly.
|
Class for representing nodes in expression trees |