de.lmu.ifi.dbs.elki.evaluation.paircounting.generator
Class PairGeneratorMerge
java.lang.Object
de.lmu.ifi.dbs.elki.evaluation.paircounting.generator.PairSortedGenerator
de.lmu.ifi.dbs.elki.evaluation.paircounting.generator.PairGeneratorMerge
- All Implemented Interfaces:
- PairSortedGeneratorInterface
public class PairGeneratorMerge
- extends PairSortedGenerator
Merge the output of multiple generators.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
generators
private PairSortedGeneratorInterface[] generators
- Generators to merge
PairGeneratorMerge
public PairGeneratorMerge(PairSortedGeneratorInterface[] generators)
- Set up merging generator.
param generators will not be copied!
- Parameters:
generators
- array of generators.
advance
protected IntIntPair advance()
- Advance iterator and return next pair.
This will return the smallest of all the "merged" generator results.
- Specified by:
advance
in class PairSortedGenerator