de.lmu.ifi.dbs.elki.evaluation.paircounting.generator
Interface PairSortedGeneratorInterface
- All Known Implementing Classes:
- PairGeneratorMerge, PairGeneratorNoise, PairGeneratorSingleCluster, PairSortedGenerator
public interface PairSortedGeneratorInterface
Pair generator interface.
Implementation must return pairs sorted.
Basically this is an Iterator interface, but it deliberately has a current() method,
that is useful e.g. for merging.
- Author:
- Erich Schubert
current
IntIntPair current()
- Return current pair.
- Returns:
- current pair, null if there are no more pairs
next
IntIntPair next()
- Return next pair, advance generator
- Returns:
- next pair, null if there are no more pairs