Enumeration e = dataset.enumerateInstances();
while (e.hasMoreElements()) {
clusters.add(clusterer.clusterInstance((Instance) e
.nextElement()));
}
ClusteringResult result = new ClusteringResult(clusters, null,
clusterer.numberOfClusters(), parameters.getParameter(
EMClustererParameters.visualization).getValue());
return result;
} catch (Exception ex) {
logger.log(Level.SEVERE, null, ex);