Cumulative Aggregate Java SequenceIterator Methods

All Cumulative Aggregate Java SequenceIterator methods produce a result sequence in which the value of each element is the result of the specified operation on all of the preceding elements.

SequenceIterator cumAggMax()
Returns a sequence with the cumulative maximum: each element is the maximum value of all the preceding elements.
SequenceIterator cumAggMin()
Returns a sequence with the cumulative minimum: each element is the minimum value of all the preceding elements.
SequenceIterator cumAggSum()
Returns a sequence with the cumulative sum: each element is the sum of all the preceding elements.
SequenceIterator cumAggPrd()
Returns a sequence with the cumulative product: each element is the product of all the preceding elements.
SequenceIterator cumAggAvg()
Returns a sequence with the cumulative average: each element is the average of all the preceding elements.
SequenceIterator cumAggVar()
Returns a sequence with the cumulative variance: each element is the variance of all the preceding elements.
SequenceIterator cumAggVarSamp()
Returns a sequence with the cumulative sample variance: each element is the cumulative sample variance of all the preceding elements.
SequenceIterator cumAggDev()
Returns a sequence with the cumulative standard deviation: each element is the cumulative standard deviation of all the preceding elements.
SequenceIterator cumAggDevSamp()
Returns a sequence with the sample standard deviation: each element is the cumulative sample standard deviation of all the preceding elements.

Example

Following is an example code snippet demonstrating a cumulative aggregate function:

    SequenceIterator close = quote.close.iterator();
    SequenceIterator cumAvg = close.cumAggAvg();
    ...