public abstract class AbstractVectorIter extends Object implements ScoreEvaluation.ScoreIter, ArrayIter
Modifier and Type | Field and Description |
---|---|
(package private) int |
pos
Current position.
|
protected int[] |
sort
Order of dimensions.
|
protected NumberVector |
vec
Data vector.
|
Constructor and Description |
---|
AbstractVectorIter(NumberVector vec)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
AbstractVectorIter |
advance()
Moves the iterator forward to the next entry.
|
AbstractVectorIter |
advance(int count)
Moves the iterator forward or backward by the given offset.
|
int |
dim()
Get the dimension in the original vector.
|
int |
getOffset()
Get current iterator offset.
|
AbstractVectorIter |
retract()
Moves the iterator backward to the previous entry.
|
AbstractVectorIter |
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.
|
protected int[] sort
protected NumberVector vec
int pos
public AbstractVectorIter(NumberVector vec)
vec
- Vector to iterate over.public int dim()
public boolean valid()
Iter
public AbstractVectorIter advance()
Iter
public boolean tiedToPrevious()
ScoreEvaluation.ScoreIter
tiedToPrevious
in interface ScoreEvaluation.ScoreIter
public int getOffset()
ArrayIter
public AbstractVectorIter advance(int count)
ArrayIter
public AbstractVectorIter retract()
ArrayIter
public AbstractVectorIter seek(int off)
ArrayIter
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.