
public static class ROC.DecreasingVectorIter extends Object implements ROC.ScoreIter, IntegerComparator, ArrayIter
| Modifier and Type | Field and Description | 
|---|---|
(package private) int | 
pos
Current position. 
 | 
private int[] | 
sort
Order of dimensions. 
 | 
private NumberVector<?> | 
vec
Data vector. 
 | 
| Constructor and Description | 
|---|
ROC.DecreasingVectorIter(NumberVector<?> vec)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
advance()
Moves the iterator forward to the next entry. 
 | 
void | 
advance(int count)
Moves the iterator forward or backward by the given offset. 
 | 
int | 
compare(int x,
       int y)
Compare two integers. 
 | 
int | 
dim()  | 
int | 
getOffset()
Get current iterator offset. 
 | 
void | 
retract()
Moves the iterator backward to the previous entry. 
 | 
void | 
seek(int off)
Moves the iterator to the given position 
 | 
boolean | 
tiedToPrevious()
Test whether the score is the same as the previous objects score. 
 | 
boolean | 
valid()
Returns true if the iterator currently points to a valid object. 
 | 
private int[] sort
private NumberVector<?> vec
int pos
public ROC.DecreasingVectorIter(NumberVector<?> vec)
vec - Vector to iterate over.public int compare(int x,
          int y)
IntegerComparatorcompare in interface IntegerComparatorx - First inty - Second intpublic int dim()
public boolean valid()
Iterpublic void advance()
Iterpublic boolean tiedToPrevious()
ROC.ScoreItertiedToPrevious in interface ROC.ScoreIterpublic int getOffset()
ArrayIterpublic void advance(int count)
ArrayIterpublic void retract()
ArrayIter