Grand Aggregate C++ Sequence Methods
All Grand Aggregate C++ Sequence methods produce a
doubleresult or a scalar value of the object's type, except methodscount()andapproxDistinctCount(), which return auint8oruint4value.uint8 count() constReturns the number of elements.T aggMax() constReturns the maximum element value.T aggMin() constReturns the minimum element value.T aggSum() constReturns the sum of all elements.T aggPrd() constReturns the product of all elements.double aggAvg() constReturns the average of all elements.double aggVar() constReturns the variance of elements.double aggVarSamp() constReturns the sample variance of elements.double aggDev() constReturns the standard deviation of elements.double aggDevSamp() constReturns the sample standard deviation of elements.uint4 approxDistinctCount() constReturns the approximate count of distinct values.Example
Following is an example code snippet demonstrating a grand aggregate function:
Sequence<float> close = quote.close_iterator(); double avg = close.aggAvg(); ...