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

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

public class PairGeneratorSingleCluster
extends PairSortedGenerator

Generate sorted ID pairs for a Cluster.


Field Summary
private  int[] parentids
          Ids in parent clusters
private  int pos1
          Position in first set
private  int pos2
          Position in second set
private  int[] thisids
          ids in this cluster
 
Constructor Summary
PairGeneratorSingleCluster(Cluster<?> cluster, boolean useHierarchical)
          Generate pairs for a hierarchical cluster.
 
Method Summary
protected  IntIntPair advance()
          Advance iterator
 
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

parentids

private int[] parentids
Ids in parent clusters


thisids

private int[] thisids
ids in this cluster


pos1

private int pos1
Position in first set


pos2

private int pos2
Position in second set

Constructor Detail

PairGeneratorSingleCluster

public PairGeneratorSingleCluster(Cluster<?> cluster,
                                  boolean useHierarchical)
Generate pairs for a hierarchical cluster.

Parameters:
cluster - Cluster
useHierarchical - Use hierarchical mode
Method Detail

advance

protected IntIntPair advance()
Advance iterator

Specified by:
advance in class PairSortedGenerator

Release 0.4.0 (2011-09-20_1324)