| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlio.util.Partition
public class Partition
Auxiliar class that allows managing partitions in clustering processes
| Field Summary | |
|---|---|
protected  int | 
numSubsets
Number of subsets  | 
protected  int[][] | 
partition
Matrix containing the partitions  | 
| Constructor Summary | |
|---|---|
Partition(int size)
Creates a partition with so many subsets as elements  | 
|
| Method Summary | |
|---|---|
 void | 
merge(int p1,
      int p2)
Merges two subsets.  | 
 int | 
numSubsets()
Return the number of subsets  | 
 int[] | 
partition(int i)
 | 
 void | 
printPartition()
 | 
 int | 
size(int i)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected int numSubsets
protected int[][] partition
| Constructor Detail | 
|---|
public Partition(int size)
| Method Detail | 
|---|
public void merge(int p1,
                  int p2)
p1 - First subset to be merged.p2 - Second subsetto be merged.public int numSubsets()
public int[] partition(int i)
public int size(int i)
public void printPartition()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||