Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

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.

Author:
Erich Schubert

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)
          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)
Generate pairs for a hierarchical cluster.

Parameters:
cluster - Cluster
Method Detail

advance

protected IntIntPair advance()
Advance iterator

Specified by:
advance in class PairSortedGenerator

Release 0.3 (2010-03-31_1612)