Grand Aggregate C++ Sequence Methods
All Grand Aggregate C++ Sequence methods produce a
double
result or a scalar value of the object's type, except methodscount()
andapproxDistinctCount()
which return auint8
oruint4
value.
uint8 count() const Returns the count of the number of elements T aggMax() const Maximum element value T aggMin() const Minimum element value T aggSum() const Sum of all elements T aggPrd() const Product of all elements double aggAvg() const Average of all elements double aggVar() const Variance of elements double aggVarSamp() const Sample Variance of elements double aggDev() const Standard Deviation of elements double aggDevSamp() const Sample Standard Deviation of elements uint4 approxDistinctCount() const 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() ...