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) Return the top nmaximum values in the object's sequenceSequenceIterator topMin(int top) Return the top
nminimum values in the object's sequenceSequenceIterator topPosMax(int top) Return the positions of the top
nmaximum values in the object's sequenceSequenceIterator topPosMin(int top) Return the positions of the top
nminimum values in the object's sequenceExample
Following is an example code snippet demonstrating one of these functions:
SequenceIterator close = quote.close.iterator(); SequenceIterator top10 = close.topMax(10); ...