/** * Returns graph describing the clusterer (if possible). * * @return the graph of the clusterer in dotty format * @throws Exception if the clusterer cannot be graphed */ public String graph() throws Exception { if (m_Clusterer instanceof Drawable) return ((Drawable) m_Clusterer).graph(); else throw new Exception( "Clusterer: " + getClustererSpec() + " cannot be graphed"); }
/** * Returns graph describing the clusterer (if possible). * * @return the graph of the clusterer in dotty format * @throws Exception if the clusterer cannot be graphed */ public String graph() throws Exception { if (m_Clusterer instanceof Drawable) return ((Drawable) m_Clusterer).graph(); else throw new Exception( "Clusterer: " + getClustererSpec() + " cannot be graphed"); }
/** * Output a representation of this clusterer. * * @return a representation of this clusterer */ @Override public String toString() { String result; if (m_FilteredInstances == null) { result = "FilteredClusterer: No model built yet."; } else { result = "FilteredClusterer using " + getClustererSpec() + " on data filtered through " + getFilterSpec() + "\n\nFiltered Header\n" + m_FilteredInstances.toString() + "\n\nClusterer Model\n" + m_Clusterer.toString(); } return result; }
/** * Output a representation of this clusterer. * * @return a representation of this clusterer */ @Override public String toString() { String result; if (m_FilteredInstances == null) { result = "FilteredClusterer: No model built yet."; } else { result = "FilteredClusterer using " + getClustererSpec() + " on data filtered through " + getFilterSpec() + "\n\nFiltered Header\n" + m_FilteredInstances.toString() + "\n\nClusterer Model\n" + m_Clusterer.toString(); } return result; }