|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Clusterer
Interface for clusterers. Clients will typically extend either AbstractClusterer or AbstractDensityBasedClusterer.
| Method Summary | |
|---|---|
void |
buildClusterer(Instances data)
Generates a clusterer. |
int |
clusterInstance(Instance instance)
Classifies a given instance. |
double[] |
distributionForInstance(Instance instance)
Predicts the cluster memberships for a given instance. |
Capabilities |
getCapabilities()
Returns the Capabilities of this clusterer. |
int |
numberOfClusters()
Returns the number of clusters. |
| Method Detail |
|---|
void buildClusterer(Instances data)
throws java.lang.Exception
data - set of instances serving as training data
java.lang.Exception - if the clusterer has not been
generated successfully
int clusterInstance(Instance instance)
throws java.lang.Exception
instance - the instance to be assigned to a cluster
java.lang.Exception - if instance could not be clustered
successfully
double[] distributionForInstance(Instance instance)
throws java.lang.Exception
instance - the instance to be assigned a cluster.
java.lang.Exception - if distribution could not be
computed successfully
int numberOfClusters()
throws java.lang.Exception
java.lang.Exception - if number of clusters could not be returned
successfullyCapabilities getCapabilities()
Capabilities
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||