The top Java SequenceIterator methods take an integer argument
nand produce result sequences of the topnmaximum or minimum elements or their positions:SequenceIterator topMax(int top)Returns the topnmaximum values in the object's sequence.SequenceIterator topMin(int top)Returns the topnminimum values in the object's sequence.SequenceIterator topPosMax(int top)Returns the positions of the topnmaximum values in the object's sequence.SequenceIterator topPosMin(int top)Returns the positions of the topnminimum values in the object's sequence.Example
Following is an example code snippet demonstrating one of these functions:
SequenceIterator close = quote.close.iterator(); SequenceIterator top10 = close.topMax(10); ...