public class Clustering extends Object
| Constructor and Description |
|---|
Clustering(InstanceList instances,
int numLabels,
int[] labels)
Clustering constructor.
|
| Modifier and Type | Method and Description |
|---|---|
InstanceList |
getCluster(int label)
Return an list of instances with a particular label.
|
InstanceList[] |
getClusters()
Returns an array of instance lists corresponding to clusters.
|
int |
getLabel(int index)
Get the cluster label for a particular instance.
|
int |
getNumClusters() |
public Clustering(InstanceList instances, int numLabels, int[] labels)
instances - Instances that are clusterednumLabels - Number of clusterslabels - Assignment of instances to clusters; many-to-one with
range [0,numLabels).public int getNumClusters()
public int getLabel(int index)
public InstanceList getCluster(int label)
public InstanceList[] getClusters()
Copyright © 2019 JULIE Lab, Germany. All rights reserved.