-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement aggregation functions: max(), min(), sum(), and stddev()
The min() and max() functions require initialization of their initial value. That is, data for min() is initialized with the highest possible value and data for max() is initialized with the lowest possible value. This initialization happens in dt_aggregate_go(). The stddev() function records the number of values, the sum of values, and the 128-bit sum of the squares of each value. This information is processed by the consumer to determine the standard deviation value. Signed-off-by: David Mc Lean <david.mclean@oracle.com> Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com> Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
- Loading branch information
Showing
2 changed files
with
272 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters