de.lmu.ifi.dbs.elki.evaluation.paircounting.generator
Class PairGeneratorMerge

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.evaluation.paircounting.generator.PairSortedGenerator
      extended by de.lmu.ifi.dbs.elki.evaluation.paircounting.generator.PairGeneratorMerge
All Implemented Interfaces:
PairSortedGeneratorInterface

public class PairGeneratorMerge
extends PairSortedGenerator

Merge the output of multiple generators.


Field Summary
private  PairSortedGeneratorInterface[] generators
          Generators to merge
 
Constructor Summary
PairGeneratorMerge(PairSortedGeneratorInterface[] generators)
          Set up merging generator.
 
Method Summary
protected  IntIntPair advance()
          Advance iterator and return next pair.
 
Methods inherited from class de.lmu.ifi.dbs.elki.evaluation.paircounting.generator.PairSortedGenerator
current, next, setCurrent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

generators

private PairSortedGeneratorInterface[] generators
Generators to merge

Constructor Detail

PairGeneratorMerge

public PairGeneratorMerge(PairSortedGeneratorInterface[] generators)
Set up merging generator. param generators will not be copied!

Parameters:
generators - array of generators.
Method Detail

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

Release 0.4.0 (2011-09-20_1324)