public class PairGeneratorSingleCluster extends PairSortedGenerator
Cluster
.Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
PairGeneratorSingleCluster(Cluster<?> cluster,
boolean useHierarchical)
Generate pairs for a hierarchical cluster.
|
Modifier and Type | Method and Description |
---|---|
protected IntIntPair |
advance()
Advance iterator
|
current, next, setCurrent
private int[] parentids
private int[] thisids
private int pos1
private int pos2
public PairGeneratorSingleCluster(Cluster<?> cluster, boolean useHierarchical)
cluster
- ClusteruseHierarchical
- Use hierarchical modeprotected IntIntPair advance()
advance
in class PairSortedGenerator