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)
IntegerComparator
compare
in interface IntegerComparator
x
- First inty
- Second intpublic int dim()
public boolean valid()
Iter
public void advance()
Iter
public boolean tiedToPrevious()
ROC.ScoreIter
tiedToPrevious
in interface ROC.ScoreIter
public int getOffset()
ArrayIter
public void advance(int count)
ArrayIter
public void retract()
ArrayIter