ecological-engine/target/apidocs/org/gcube/dataanalysis/ecoengine/clustering/XMeans.html

3698 lines
140 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Thu Sep 13 15:06:11 CEST 2012 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
XMeans (ecological-engine 1.3.0-SNAPSHOT API)
</TITLE>
<META NAME="date" CONTENT="2012-09-13">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="XMeans (ecological-engine 1.3.0-SNAPSHOT API)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/XMeans.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/KMeans.html" title="class in org.gcube.dataanalysis.ecoengine.clustering"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeansWrapper.html" title="class in org.gcube.dataanalysis.ecoengine.clustering"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?org/gcube/dataanalysis/ecoengine/clustering/XMeans.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="XMeans.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.gcube.dataanalysis.ecoengine.clustering</FONT>
<BR>
Class XMeans</H2>
<PRE>
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
<IMG SRC="../../../../../resources/inherit.gif" ALT="extended by ">weka.clusterers.AbstractClusterer
<IMG SRC="../../../../../resources/inherit.gif" ALT="extended by ">weka.clusterers.RandomizableClusterer
<IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.gcube.dataanalysis.ecoengine.clustering.XMeans</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</A>, weka.clusterers.Clusterer, weka.core.CapabilitiesHandler, weka.core.OptionHandler, weka.core.Randomizable, weka.core.RevisionHandler, weka.core.TechnicalInformationHandler</DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>XMeans</B><DT>extends weka.clusterers.RandomizableClusterer<DT>implements weka.core.TechnicalInformationHandler</DL>
</PRE>
<P>
<!-- globalinfo-start -->
Cluster data using the X-means algorithm.<br/>
<br/>
X-Means is K-Means extended by an Improve-Structure part In this part of the algorithm the centers are attempted to be split in its region. The decision between the children of each center and itself is done comparing the BIC-values of the two structures.<br/>
<br/>
For more information see:<br/>
<br/>
Dan Pelleg, Andrew W. Moore: X-means: Extending K-means with Efficient Estimation of the Number of Clusters. In: Seventeenth International Conference on Machine Learning, 727-734, 2000.
<p/>
<!-- globalinfo-end -->
<!-- technical-bibtex-start -->
BibTeX:
<pre>
&#64;inproceedings{Pelleg2000,
author = {Dan Pelleg and Andrew W. Moore},
booktitle = {Seventeenth International Conference on Machine Learning},
pages = {727-734},
publisher = {Morgan Kaufmann},
title = {X-means: Extending K-means with Efficient Estimation of the Number of Clusters},
year = {2000}
}
</pre>
<p/>
<!-- technical-bibtex-end -->
<!-- options-start -->
Valid options are: <p/>
<pre> -I &lt;num&gt;
maximum number of overall iterations
(default 1).</pre>
<pre> -M &lt;num&gt;
maximum number of iterations in the kMeans loop in
the Improve-Parameter part
(default 1000).</pre>
<pre> -J &lt;num&gt;
maximum number of iterations in the kMeans loop
for the splitted centroids in the Improve-Structure part
(default 1000).</pre>
<pre> -L &lt;num&gt;
minimum number of clusters
(default 2).</pre>
<pre> -H &lt;num&gt;
maximum number of clusters
(default 4).</pre>
<pre> -B &lt;value&gt;
distance value for binary attributes
(default 1.0).</pre>
<pre> -use-kdtree
Uses the KDTree internally
(default no).</pre>
<pre> -K &lt;KDTree class specification&gt;
Full class name of KDTree class to use, followed
by scheme options.
eg: "weka.core.neighboursearch.kdtrees.KDTree -P"
(default no KDTree class used).</pre>
<pre> -C &lt;value&gt;
cutoff factor, takes the given percentage of the splitted
centroids if none of the children win
(default 0.0).</pre>
<pre> -D &lt;distance function class specification&gt;
Full class name of Distance function class to use, followed
by scheme options.
(default weka.core.EuclideanDistance).</pre>
<pre> -N &lt;file name&gt;
file to read starting centers from (ARFF format).</pre>
<pre> -O &lt;file name&gt;
file to write centers to (ARFF format).</pre>
<pre> -U &lt;int&gt;
The debug level.
(default 0)</pre>
<pre> -Y &lt;file name&gt;
The debug vectors file.</pre>
<pre> -S &lt;num&gt;
Random number seed.
(default 10)</pre>
<!-- options-end -->
<P>
<P>
<DL>
<DT><B>Version:</B></DT>
<DD>$Revision: 8109 $</DD>
<DT><B>Author:</B></DT>
<DD>Gabi Schmidberger (gabi@cs.waikato.ac.nz), Mark Hall (mhall@cs.waikato.ac.nz), Malcolm Ware (mfw4@cs.waikato.ac.nz)</DD>
<DT><B>See Also:</B><DD><CODE>RandomizableClusterer</CODE>,
<A HREF="../../../../../serialized-form.html#org.gcube.dataanalysis.ecoengine.clustering.XMeans">Serialized Form</A></DL>
<HR>
<P>
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#D_CONVCHCLOSER">D_CONVCHCLOSER</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;have a closer look at converge children.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#D_CURR">D_CURR</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for current debug.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#D_FOLLOWSPLIT">D_FOLLOWSPLIT</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;follows the splitting of the centers.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#D_GENERAL">D_GENERAL</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;general debugging.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#D_ITERCOUNT">D_ITERCOUNT</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;follow iterations.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#D_KDTREE">D_KDTREE</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;check on kdtree.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#D_METH_MISUSE">D_METH_MISUSE</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;functions were maybe misused.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#D_PRINTCENTERS">D_PRINTCENTERS</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print the centers.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#D_RANDOMVECTOR">D_RANDOMVECTOR</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;check on random vectors.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_Bic">m_Bic</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BIC-Score of the current model.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_BinValue">m_BinValue</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Distance value between true and false of binary attributes and
"same" and "different" of nominal attributes (default = 1.0).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_CenterInput">m_CenterInput</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;input file for the cluster centers.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io">PrintWriter</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_CenterOutput">m_CenterOutput</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;output file for the cluster centers.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_ClusterAssignments">m_ClusterAssignments</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;temporary variable holding cluster assignments while iterating.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;weka.core.Instances</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_ClusterCenters">m_ClusterCenters</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cluster centers.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_CurrDebugFlag">m_CurrDebugFlag</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flag: I'm debugging.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_CutOffFactor">m_CutOffFactor</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cutoff factor - percentage of splits done in Improve-Structure part
only relevant, if all children lost.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_DebugLevel">m_DebugLevel</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;level of debug output, 0 is no output.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;weka.core.Instances</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_DebugVectors">m_DebugVectors</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;all the debug vectors.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_DebugVectorsFile">m_DebugVectorsFile</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;file name of the input file for the random vectors.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_DebugVectorsIndex">m_DebugVectorsIndex</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the index for the current debug vector.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_DebugVectorsInput">m_DebugVectorsInput</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;input file for the random vectors --> USED FOR DEBUGGING.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;weka.core.DistanceFunction</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_DistanceF">m_DistanceF</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the distance function used.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_InputCenterFile">m_InputCenterFile</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;file name of the output file for the cluster centers.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;weka.core.Instances</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_Instances">m_Instances</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;training instances.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_IterationCount">m_IterationCount</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;counts iterations done in main loop.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;weka.core.neighboursearch.KDTree</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_KDTree">m_KDTree</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;KDTrees class if KDTrees are used.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_KMeansStopped">m_KMeansStopped</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;counter to say how often kMeans was stopped by loop counter.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_MaxIterations">m_MaxIterations</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;maximum overall iterations.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_MaxKMeans">m_MaxKMeans</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;maximum iterations to perform Kmeans part
if negative, iterations are not checked.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_MaxKMeansForChildren">m_MaxKMeansForChildren</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;see above, but for kMeans of splitted clusters.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_MaxNumClusters">m_MaxNumClusters</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;max number of clusters to generate.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_MinNumClusters">m_MinNumClusters</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;min number of clusters to generate.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;double[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_Mle">m_Mle</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Distortion.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;weka.core.Instances</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_Model">m_Model</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;model information, should increase readability.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_NumClusters">m_NumClusters</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The actual number of clusters.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_NumSplits">m_NumSplits</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Number of splits prepared.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_NumSplitsDone">m_NumSplitsDone</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Number of splits accepted (including cutoff factor decisions).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_NumSplitsStillDone">m_NumSplitsStillDone</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Number of splits accepted just because of cutoff factor.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_OutputCenterFile">m_OutputCenterFile</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;file name of the output file for the cluster centers.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;weka.filters.unsupervised.attribute.ReplaceMissingValues</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_ReplaceMissingFilter">m_ReplaceMissingFilter</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;replace missing values in training instances.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#m_UseKDTree">m_UseKDTree</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;whether to use the KDTree (the KDTree is only initialized to be
configurable from the GUI).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#R_HIGH">R_HIGH</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Index in ranges for HIGH.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#R_LOW">R_LOW</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Index in ranges for LOW.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#R_WIDTH">R_WIDTH</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Index in ranges for WIDTH.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_weka.clusterers.RandomizableClusterer"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from class weka.clusterers.RandomizableClusterer</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>m_Seed, m_SeedDefault</CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#XMeans()">XMeans</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the default constructor.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#assignToCenters(weka.core.Instances, int[][], int[], int[])">assignToCenters</A></B>(weka.core.Instances&nbsp;centers,
int[][]&nbsp;instOfCent,
int[]&nbsp;allInstList,
int[]&nbsp;assignments)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Assign instances to centers.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#assignToCenters(weka.core.neighboursearch.KDTree, weka.core.Instances, int[][], int[], int)">assignToCenters</A></B>(weka.core.neighboursearch.KDTree&nbsp;kdtree,
weka.core.Instances&nbsp;centers,
int[][]&nbsp;instOfCent,
int[]&nbsp;assignments,
int&nbsp;iterationCount)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Assign instances to centers using KDtree.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#assignToCenters(weka.core.neighboursearch.KDTree, weka.core.Instances, int[][], int[], int[], int)">assignToCenters</A></B>(weka.core.neighboursearch.KDTree&nbsp;tree,
weka.core.Instances&nbsp;centers,
int[][]&nbsp;instOfCent,
int[]&nbsp;allInstList,
int[]&nbsp;assignments,
int&nbsp;iterationCount)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Assigns instances to centers.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#binValueTipText()">binValueTipText</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the tip text for this property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#buildClusterer(weka.core.Instances)">buildClusterer</A></B>(weka.core.Instances&nbsp;data)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generates the X-Means clusterer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#calculateBIC(int[][], weka.core.Instances, double[])">calculateBIC</A></B>(int[][]&nbsp;instOfCent,
weka.core.Instances&nbsp;centers,
double[]&nbsp;mle)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calculates the BIC for the given set of centers and instances.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#calculateBIC(int[], weka.core.Instance, double, weka.core.Instances)">calculateBIC</A></B>(int[]&nbsp;instList,
weka.core.Instance&nbsp;center,
double&nbsp;mle,
weka.core.Instances&nbsp;model)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the BIC-value for the given center and instances.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#checkForNominalAttributes(weka.core.Instances)">checkForNominalAttributes</A></B>(weka.core.Instances&nbsp;data)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks for nominal attributes in the dataset.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#checkInstances()">checkInstances</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks the instances.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#clusterInstance(weka.core.Instance)">clusterInstance</A></B>(weka.core.Instance&nbsp;instance)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Classifies a given instance.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#clusterProcessedInstance(weka.core.Instance)">clusterProcessedInstance</A></B>(weka.core.Instance&nbsp;instance)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clusters an instance that has been through the filters.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#clusterProcessedInstance(weka.core.Instance, weka.core.Instances)">clusterProcessedInstance</A></B>(weka.core.Instance&nbsp;instance,
weka.core.Instances&nbsp;centers)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clusters an instance.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#cutOffFactorTipText()">cutOffFactorTipText</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the tip text for this property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#debugLevelTipText()">debugLevelTipText</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the tip text for this property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#debugVectorsFileTipText()">debugVectorsFileTipText</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the tip text for this property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#distanceFTipText()">distanceFTipText</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the tip text for this property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;double[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#distortion(int[][], weka.core.Instances)">distortion</A></B>(int[][]&nbsp;instOfCent,
weka.core.Instances&nbsp;centers)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calculates the maximum likelihood estimate for the variance.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#getBinValue()">getBinValue</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets value that represents true in a new numeric attribute.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;weka.core.Capabilities</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#getCapabilities()">getCapabilities</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns default capabilities of the clusterer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;weka.core.Instances</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#getClusterCenters()">getClusterCenters</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the centers of the clusters as an Instances object</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#getCutOffFactor()">getCutOffFactor</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the cutoff factor.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#getDebugLevel()">getDebugLevel</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the debug level.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#getDebugVectorsFile()">getDebugVectorsFile</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the file name for a file that has the random vectors stored.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;weka.core.DistanceFunction</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#getDistanceF()">getDistanceF</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the distance function.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#getDistanceFSpec()">getDistanceFSpec</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the distance function specification string, which contains the
class name of the distance function class and any options to it.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#getInputCenterFile()">getInputCenterFile</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the file to read the list of centers from.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;weka.core.neighboursearch.KDTree</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#getKDTree()">getKDTree</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the KDTree class.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#getKDTreeSpec()">getKDTreeSpec</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the KDTree specification string, which contains the class name of
the KDTree class and any options to the KDTree.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#getMaxIterations()">getMaxIterations</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the maximum number of iterations.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#getMaxKMeans()">getMaxKMeans</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the maximum number of iterations in KMeans.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#getMaxKMeansForChildren()">getMaxKMeansForChildren</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the maximum number of iterations in KMeans.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#getMaxNumClusters()">getMaxNumClusters</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the maximum number of clusters to generate.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#getMinNumClusters()">getMinNumClusters</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the minimum number of clusters to generate.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;weka.core.Instance</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#getNextDebugVectorsInstance(weka.core.Instances)">getNextDebugVectorsInstance</A></B>(weka.core.Instances&nbsp;model)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read an instance from debug vectors file.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#getOptions()">getOptions</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the current settings of SimpleKMeans.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#getOutputCenterFile()">getOutputCenterFile</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the file to write the list of centers to.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#getRevision()">getRevision</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the revision string.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;weka.core.TechnicalInformation</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#getTechnicalInformation()">getTechnicalInformation</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an instance of a TechnicalInformation object, containing
detailed information about the technical background of this class,
e.g., paper reference or book this class is based on.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#getUseKDTree()">getUseKDTree</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets whether the KDTree is used or not.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#globalInfo()">globalInfo</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string describing this clusterer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#initAssignments(int)">initAssignments</A></B>(int&nbsp;numInstances)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates and initializes integer array, used to store assignments.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#initAssignments(int[])">initAssignments</A></B>(int[]&nbsp;ass)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set array of int, used to store assignments, to -1.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#initDebugVectorsInput()">initDebugVectorsInput</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialises the debug vector input.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#inputCenterFileTipText()">inputCenterFileTipText</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the tip text for this property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#KDTreeTipText()">KDTreeTipText</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the tip text for this property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#listOptions()">listOptions</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an enumeration describing the available options.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#logLikelihoodEstimate(int, weka.core.Instance, double, int)">logLikelihoodEstimate</A></B>(int&nbsp;numInst,
weka.core.Instance&nbsp;center,
double&nbsp;distortion,
int&nbsp;numCent)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calculates the log-likelihood of the data for the given model, taken
at the maximum likelihood point.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#main(java.lang.String[])">main</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;argv)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Main method for testing this class.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;weka.core.Instances</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#makeCentersRandomly(java.util.Random, weka.core.Instances, int)">makeCentersRandomly</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Random.html?is-external=true" title="class or interface in java.util">Random</A>&nbsp;random0,
weka.core.Instances&nbsp;model,
int&nbsp;numClusters)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generates new centers randomly.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#maxIterationsTipText()">maxIterationsTipText</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the tip text for this property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#maxKMeansForChildrenTipText()">maxKMeansForChildrenTipText</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the tip text for this property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#maxKMeansTipText()">maxKMeansTipText</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the tip text for this property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#maxNumClustersTipText()">maxNumClustersTipText</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the tip text for this property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#meanOrMode(weka.core.Instances, int[], int)">meanOrMode</A></B>(weka.core.Instances&nbsp;instances,
int[]&nbsp;instList,
int&nbsp;attIndex)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Computes Mean Or Mode of one attribute on a subset of m_Instances.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#minNumClustersTipText()">minNumClustersTipText</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the tip text for this property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;weka.core.Instances</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#newCentersAfterSplit(boolean[], weka.core.Instances)">newCentersAfterSplit</A></B>(boolean[]&nbsp;splitWon,
weka.core.Instances&nbsp;splitCenters)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns new centers.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;weka.core.Instances</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#newCentersAfterSplit(double[], double[], double, weka.core.Instances)">newCentersAfterSplit</A></B>(double[]&nbsp;pbic,
double[]&nbsp;cbic,
double&nbsp;cutoffFactor,
weka.core.Instances&nbsp;splitCenters)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns new center list.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#nextAssignedOne(int, int, int[])">nextAssignedOne</A></B>(int&nbsp;cent,
int&nbsp;lastIndex,
int[]&nbsp;assignments)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Searches along the assignment array for the next entry of the center
in question.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#numberOfClusters()">numberOfClusters</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of clusters.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#outputCenterFileTipText()">outputCenterFileTipText</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the tip text for this property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#PFD_CURR(java.lang.String)">PFD_CURR</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;output)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Does debug printouts.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#PFD(int, java.lang.String)">PFD</A></B>(int&nbsp;debugLevel,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;output)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Does debug printouts.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#PrCentersFD(int)">PrCentersFD</A></B>(int&nbsp;debugLevel)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print centers for debug.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#recomputeCenters(weka.core.Instances, int[][], weka.core.Instances)">recomputeCenters</A></B>(weka.core.Instances&nbsp;centers,
int[][]&nbsp;instOfCent,
weka.core.Instances&nbsp;model)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Recompute the new centers.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#recomputeCentersFast(weka.core.Instances, int[][], weka.core.Instances)">recomputeCentersFast</A></B>(weka.core.Instances&nbsp;centers,
int[][]&nbsp;instOfCentIndexes,
weka.core.Instances&nbsp;model)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Recompute the new centers - 2nd version
Same as recomputeCenters, but does not check if center stays the same.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#setBinValue(double)">setBinValue</A></B>(double&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the distance value between true and false of binary attributes.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#setCutOffFactor(double)">setCutOffFactor</A></B>(double&nbsp;i)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a new cutoff factor.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#setDebugLevel(int)">setDebugLevel</A></B>(int&nbsp;d)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the debug level.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#setDebugVectorsFile(java.io.File)">setDebugVectorsFile</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the file that has the random vectors stored.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#setDistanceF(weka.core.DistanceFunction)">setDistanceF</A></B>(weka.core.DistanceFunction&nbsp;distanceF)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gets the "binary" distance value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#setInputCenterFile(java.io.File)">setInputCenterFile</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the file to read the list of centers from.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#setKDTree(weka.core.neighboursearch.KDTree)">setKDTree</A></B>(weka.core.neighboursearch.KDTree&nbsp;k)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the KDTree class.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#setMaxIterations(int)">setMaxIterations</A></B>(int&nbsp;i)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the maximum number of iterations to perform.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#setMaxKMeans(int)">setMaxKMeans</A></B>(int&nbsp;i)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the maximum number of iterations to perform in KMeans.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#setMaxKMeansForChildren(int)">setMaxKMeansForChildren</A></B>(int&nbsp;i)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the maximum number of iterations KMeans that is performed
on the child centers.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#setMaxNumClusters(int)">setMaxNumClusters</A></B>(int&nbsp;n)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the maximum number of clusters to generate.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#setMinNumClusters(int)">setMinNumClusters</A></B>(int&nbsp;n)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the minimum number of clusters to generate.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#setOptions(java.lang.String[])">setOptions</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;options)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parses a given list of options.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#setOutputCenterFile(java.io.File)">setOutputCenterFile</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets file to write the list of centers to.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#setUseKDTree(boolean)">setUseKDTree</A></B>(boolean&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets whether to use the KDTree or not.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;weka.core.Instances</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#splitCenter(java.util.Random, weka.core.Instance, double, weka.core.Instances)">splitCenter</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Random.html?is-external=true" title="class or interface in java.util">Random</A>&nbsp;random,
weka.core.Instance&nbsp;center,
double&nbsp;variance,
weka.core.Instances&nbsp;model)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Split centers in their region.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;weka.core.Instances</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#splitCenters(java.util.Random, weka.core.Instances, weka.core.Instances)">splitCenters</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Random.html?is-external=true" title="class or interface in java.util">Random</A>&nbsp;random,
weka.core.Instances&nbsp;instances,
weka.core.Instances&nbsp;model)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Split centers in their region.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#stopIteration(int, int)">stopIteration</A></B>(int&nbsp;iterationCount,
int&nbsp;max)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks if iterationCount has to be checked and if yes
(this means max is > 0) compares it with max.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#stopKMeansIteration(int, int)">stopKMeansIteration</A></B>(int&nbsp;iterationCount,
int&nbsp;max)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Controls that counter does not exceed max iteration value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#TFD(int)">TFD</A></B>(int&nbsp;debugLevel)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tests on debug status.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#toString()">toString</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a string describing this clusterer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeans.html#useKDTreeTipText()">useKDTreeTipText</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the tip text for this property.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_weka.clusterers.RandomizableClusterer"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class weka.clusterers.RandomizableClusterer</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>getSeed, seedTipText, setSeed</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_weka.clusterers.AbstractClusterer"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class weka.clusterers.AbstractClusterer</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>distributionForInstance, forName, makeCopies, makeCopy, runClusterer</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="m_Instances"><!-- --></A><H3>
m_Instances</H3>
<PRE>
protected weka.core.Instances <B>m_Instances</B></PRE>
<DL>
<DD>training instances.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_Model"><!-- --></A><H3>
m_Model</H3>
<PRE>
protected weka.core.Instances <B>m_Model</B></PRE>
<DL>
<DD>model information, should increase readability.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_ReplaceMissingFilter"><!-- --></A><H3>
m_ReplaceMissingFilter</H3>
<PRE>
protected weka.filters.unsupervised.attribute.ReplaceMissingValues <B>m_ReplaceMissingFilter</B></PRE>
<DL>
<DD>replace missing values in training instances.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_BinValue"><!-- --></A><H3>
m_BinValue</H3>
<PRE>
protected double <B>m_BinValue</B></PRE>
<DL>
<DD>Distance value between true and false of binary attributes and
"same" and "different" of nominal attributes (default = 1.0).
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_Bic"><!-- --></A><H3>
m_Bic</H3>
<PRE>
protected double <B>m_Bic</B></PRE>
<DL>
<DD>BIC-Score of the current model.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_Mle"><!-- --></A><H3>
m_Mle</H3>
<PRE>
protected double[] <B>m_Mle</B></PRE>
<DL>
<DD>Distortion.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_MaxIterations"><!-- --></A><H3>
m_MaxIterations</H3>
<PRE>
protected int <B>m_MaxIterations</B></PRE>
<DL>
<DD>maximum overall iterations.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_MaxKMeans"><!-- --></A><H3>
m_MaxKMeans</H3>
<PRE>
protected int <B>m_MaxKMeans</B></PRE>
<DL>
<DD>maximum iterations to perform Kmeans part
if negative, iterations are not checked.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_MaxKMeansForChildren"><!-- --></A><H3>
m_MaxKMeansForChildren</H3>
<PRE>
protected int <B>m_MaxKMeansForChildren</B></PRE>
<DL>
<DD>see above, but for kMeans of splitted clusters.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_NumClusters"><!-- --></A><H3>
m_NumClusters</H3>
<PRE>
protected int <B>m_NumClusters</B></PRE>
<DL>
<DD>The actual number of clusters.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_MinNumClusters"><!-- --></A><H3>
m_MinNumClusters</H3>
<PRE>
protected int <B>m_MinNumClusters</B></PRE>
<DL>
<DD>min number of clusters to generate.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_MaxNumClusters"><!-- --></A><H3>
m_MaxNumClusters</H3>
<PRE>
protected int <B>m_MaxNumClusters</B></PRE>
<DL>
<DD>max number of clusters to generate.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_DistanceF"><!-- --></A><H3>
m_DistanceF</H3>
<PRE>
protected weka.core.DistanceFunction <B>m_DistanceF</B></PRE>
<DL>
<DD>the distance function used.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_ClusterCenters"><!-- --></A><H3>
m_ClusterCenters</H3>
<PRE>
protected weka.core.Instances <B>m_ClusterCenters</B></PRE>
<DL>
<DD>cluster centers.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_InputCenterFile"><!-- --></A><H3>
m_InputCenterFile</H3>
<PRE>
protected <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> <B>m_InputCenterFile</B></PRE>
<DL>
<DD>file name of the output file for the cluster centers.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_DebugVectorsInput"><!-- --></A><H3>
m_DebugVectorsInput</H3>
<PRE>
protected <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</A> <B>m_DebugVectorsInput</B></PRE>
<DL>
<DD>input file for the random vectors --> USED FOR DEBUGGING.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_DebugVectorsIndex"><!-- --></A><H3>
m_DebugVectorsIndex</H3>
<PRE>
protected int <B>m_DebugVectorsIndex</B></PRE>
<DL>
<DD>the index for the current debug vector.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_DebugVectors"><!-- --></A><H3>
m_DebugVectors</H3>
<PRE>
protected weka.core.Instances <B>m_DebugVectors</B></PRE>
<DL>
<DD>all the debug vectors.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_DebugVectorsFile"><!-- --></A><H3>
m_DebugVectorsFile</H3>
<PRE>
protected <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> <B>m_DebugVectorsFile</B></PRE>
<DL>
<DD>file name of the input file for the random vectors.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_CenterInput"><!-- --></A><H3>
m_CenterInput</H3>
<PRE>
protected <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</A> <B>m_CenterInput</B></PRE>
<DL>
<DD>input file for the cluster centers.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_OutputCenterFile"><!-- --></A><H3>
m_OutputCenterFile</H3>
<PRE>
protected <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> <B>m_OutputCenterFile</B></PRE>
<DL>
<DD>file name of the output file for the cluster centers.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_CenterOutput"><!-- --></A><H3>
m_CenterOutput</H3>
<PRE>
protected <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/PrintWriter.html?is-external=true" title="class or interface in java.io">PrintWriter</A> <B>m_CenterOutput</B></PRE>
<DL>
<DD>output file for the cluster centers.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_ClusterAssignments"><!-- --></A><H3>
m_ClusterAssignments</H3>
<PRE>
protected int[] <B>m_ClusterAssignments</B></PRE>
<DL>
<DD>temporary variable holding cluster assignments while iterating.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_CutOffFactor"><!-- --></A><H3>
m_CutOffFactor</H3>
<PRE>
protected double <B>m_CutOffFactor</B></PRE>
<DL>
<DD>cutoff factor - percentage of splits done in Improve-Structure part
only relevant, if all children lost.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="R_LOW"><!-- --></A><H3>
R_LOW</H3>
<PRE>
public static int <B>R_LOW</B></PRE>
<DL>
<DD>Index in ranges for LOW.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="R_HIGH"><!-- --></A><H3>
R_HIGH</H3>
<PRE>
public static int <B>R_HIGH</B></PRE>
<DL>
<DD>Index in ranges for HIGH.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="R_WIDTH"><!-- --></A><H3>
R_WIDTH</H3>
<PRE>
public static int <B>R_WIDTH</B></PRE>
<DL>
<DD>Index in ranges for WIDTH.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_KDTree"><!-- --></A><H3>
m_KDTree</H3>
<PRE>
protected weka.core.neighboursearch.KDTree <B>m_KDTree</B></PRE>
<DL>
<DD>KDTrees class if KDTrees are used.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_UseKDTree"><!-- --></A><H3>
m_UseKDTree</H3>
<PRE>
protected boolean <B>m_UseKDTree</B></PRE>
<DL>
<DD>whether to use the KDTree (the KDTree is only initialized to be
configurable from the GUI).
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_IterationCount"><!-- --></A><H3>
m_IterationCount</H3>
<PRE>
protected int <B>m_IterationCount</B></PRE>
<DL>
<DD>counts iterations done in main loop.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_KMeansStopped"><!-- --></A><H3>
m_KMeansStopped</H3>
<PRE>
protected int <B>m_KMeansStopped</B></PRE>
<DL>
<DD>counter to say how often kMeans was stopped by loop counter.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_NumSplits"><!-- --></A><H3>
m_NumSplits</H3>
<PRE>
protected int <B>m_NumSplits</B></PRE>
<DL>
<DD>Number of splits prepared.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_NumSplitsDone"><!-- --></A><H3>
m_NumSplitsDone</H3>
<PRE>
protected int <B>m_NumSplitsDone</B></PRE>
<DL>
<DD>Number of splits accepted (including cutoff factor decisions).
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_NumSplitsStillDone"><!-- --></A><H3>
m_NumSplitsStillDone</H3>
<PRE>
protected int <B>m_NumSplitsStillDone</B></PRE>
<DL>
<DD>Number of splits accepted just because of cutoff factor.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_DebugLevel"><!-- --></A><H3>
m_DebugLevel</H3>
<PRE>
protected int <B>m_DebugLevel</B></PRE>
<DL>
<DD>level of debug output, 0 is no output.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="D_PRINTCENTERS"><!-- --></A><H3>
D_PRINTCENTERS</H3>
<PRE>
public static int <B>D_PRINTCENTERS</B></PRE>
<DL>
<DD>print the centers.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="D_FOLLOWSPLIT"><!-- --></A><H3>
D_FOLLOWSPLIT</H3>
<PRE>
public static int <B>D_FOLLOWSPLIT</B></PRE>
<DL>
<DD>follows the splitting of the centers.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="D_CONVCHCLOSER"><!-- --></A><H3>
D_CONVCHCLOSER</H3>
<PRE>
public static int <B>D_CONVCHCLOSER</B></PRE>
<DL>
<DD>have a closer look at converge children.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="D_RANDOMVECTOR"><!-- --></A><H3>
D_RANDOMVECTOR</H3>
<PRE>
public static int <B>D_RANDOMVECTOR</B></PRE>
<DL>
<DD>check on random vectors.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="D_KDTREE"><!-- --></A><H3>
D_KDTREE</H3>
<PRE>
public static int <B>D_KDTREE</B></PRE>
<DL>
<DD>check on kdtree.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="D_ITERCOUNT"><!-- --></A><H3>
D_ITERCOUNT</H3>
<PRE>
public static int <B>D_ITERCOUNT</B></PRE>
<DL>
<DD>follow iterations.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="D_METH_MISUSE"><!-- --></A><H3>
D_METH_MISUSE</H3>
<PRE>
public static int <B>D_METH_MISUSE</B></PRE>
<DL>
<DD>functions were maybe misused.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="D_CURR"><!-- --></A><H3>
D_CURR</H3>
<PRE>
public static int <B>D_CURR</B></PRE>
<DL>
<DD>for current debug.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="D_GENERAL"><!-- --></A><H3>
D_GENERAL</H3>
<PRE>
public static int <B>D_GENERAL</B></PRE>
<DL>
<DD>general debugging.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_CurrDebugFlag"><!-- --></A><H3>
m_CurrDebugFlag</H3>
<PRE>
public boolean <B>m_CurrDebugFlag</B></PRE>
<DL>
<DD>Flag: I'm debugging.
<P>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="XMeans()"><!-- --></A><H3>
XMeans</H3>
<PRE>
public <B>XMeans</B>()</PRE>
<DL>
<DD>the default constructor.
<P>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="globalInfo()"><!-- --></A><H3>
globalInfo</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>globalInfo</B>()</PRE>
<DL>
<DD>Returns a string describing this clusterer.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>a description of the evaluator suitable for
displaying in the explorer/experimenter gui</DL>
</DD>
</DL>
<HR>
<A NAME="getTechnicalInformation()"><!-- --></A><H3>
getTechnicalInformation</H3>
<PRE>
public weka.core.TechnicalInformation <B>getTechnicalInformation</B>()</PRE>
<DL>
<DD>Returns an instance of a TechnicalInformation object, containing
detailed information about the technical background of this class,
e.g., paper reference or book this class is based on.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>getTechnicalInformation</CODE> in interface <CODE>weka.core.TechnicalInformationHandler</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the technical information about this class</DL>
</DD>
</DL>
<HR>
<A NAME="getCapabilities()"><!-- --></A><H3>
getCapabilities</H3>
<PRE>
public weka.core.Capabilities <B>getCapabilities</B>()</PRE>
<DL>
<DD>Returns default capabilities of the clusterer.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>getCapabilities</CODE> in interface <CODE>weka.clusterers.Clusterer</CODE><DT><B>Specified by:</B><DD><CODE>getCapabilities</CODE> in interface <CODE>weka.core.CapabilitiesHandler</CODE><DT><B>Overrides:</B><DD><CODE>getCapabilities</CODE> in class <CODE>weka.clusterers.AbstractClusterer</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the capabilities of this clusterer</DL>
</DD>
</DL>
<HR>
<A NAME="buildClusterer(weka.core.Instances)"><!-- --></A><H3>
buildClusterer</H3>
<PRE>
public void <B>buildClusterer</B>(weka.core.Instances&nbsp;data)
throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE>
<DL>
<DD>Generates the X-Means clusterer.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>buildClusterer</CODE> in interface <CODE>weka.clusterers.Clusterer</CODE><DT><B>Specified by:</B><DD><CODE>buildClusterer</CODE> in class <CODE>weka.clusterers.AbstractClusterer</CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>data</CODE> - set of instances serving as training data
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></CODE> - if the clusterer has not been
generated successfully</DL>
</DD>
</DL>
<HR>
<A NAME="checkForNominalAttributes(weka.core.Instances)"><!-- --></A><H3>
checkForNominalAttributes</H3>
<PRE>
public boolean <B>checkForNominalAttributes</B>(weka.core.Instances&nbsp;data)</PRE>
<DL>
<DD>Checks for nominal attributes in the dataset.
Class attribute is ignored.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>data</CODE> - the data to check
<DT><B>Returns:</B><DD>false if no nominal attributes are present</DL>
</DD>
</DL>
<HR>
<A NAME="initAssignments(int[])"><!-- --></A><H3>
initAssignments</H3>
<PRE>
protected int[] <B>initAssignments</B>(int[]&nbsp;ass)</PRE>
<DL>
<DD>Set array of int, used to store assignments, to -1.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ass</CODE> - integer array used for storing assignments
<DT><B>Returns:</B><DD>integer array used for storing assignments</DL>
</DD>
</DL>
<HR>
<A NAME="initAssignments(int)"><!-- --></A><H3>
initAssignments</H3>
<PRE>
protected int[] <B>initAssignments</B>(int&nbsp;numInstances)</PRE>
<DL>
<DD>Creates and initializes integer array, used to store assignments.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>numInstances</CODE> - length of array used for assignments
<DT><B>Returns:</B><DD>integer array used for storing assignments</DL>
</DD>
</DL>
<HR>
<A NAME="newCentersAfterSplit(double[], double[], double, weka.core.Instances)"><!-- --></A><H3>
newCentersAfterSplit</H3>
<PRE>
protected weka.core.Instances <B>newCentersAfterSplit</B>(double[]&nbsp;pbic,
double[]&nbsp;cbic,
double&nbsp;cutoffFactor,
weka.core.Instances&nbsp;splitCenters)</PRE>
<DL>
<DD>Returns new center list.
The following steps 1. and 2. both take care that the number of centers
does not exceed maxCenters.
1. Compare BIC values of parent and children and takes the one as
new centers which do win (= BIC-value is smaller).
2. If in 1. none of the children are chosen
&& and cutoff factor is > 0
cutoff factor is taken as the percentage of "best" centers that are
still taken.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pbic</CODE> - array of parents BIC-values<DD><CODE>cbic</CODE> - array of childrens BIC-values<DD><CODE>cutoffFactor</CODE> - cutoff factor<DD><CODE>splitCenters</CODE> - all children
<DT><B>Returns:</B><DD>the new centers</DL>
</DD>
</DL>
<HR>
<A NAME="newCentersAfterSplit(boolean[], weka.core.Instances)"><!-- --></A><H3>
newCentersAfterSplit</H3>
<PRE>
protected weka.core.Instances <B>newCentersAfterSplit</B>(boolean[]&nbsp;splitWon,
weka.core.Instances&nbsp;splitCenters)</PRE>
<DL>
<DD>Returns new centers. Depending on splitWon: if true takes children, if
false takes parent = current center.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>splitWon</CODE> - array of boolean to indicate to take split or not<DD><CODE>splitCenters</CODE> - list of splitted centers
<DT><B>Returns:</B><DD>the new centers</DL>
</DD>
</DL>
<HR>
<A NAME="stopKMeansIteration(int, int)"><!-- --></A><H3>
stopKMeansIteration</H3>
<PRE>
protected boolean <B>stopKMeansIteration</B>(int&nbsp;iterationCount,
int&nbsp;max)</PRE>
<DL>
<DD>Controls that counter does not exceed max iteration value. Special function
for kmeans iterations.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>iterationCount</CODE> - current value of counter<DD><CODE>max</CODE> - maximum value for counter
<DT><B>Returns:</B><DD>true if iteration should be stopped</DL>
</DD>
</DL>
<HR>
<A NAME="stopIteration(int, int)"><!-- --></A><H3>
stopIteration</H3>
<PRE>
protected boolean <B>stopIteration</B>(int&nbsp;iterationCount,
int&nbsp;max)</PRE>
<DL>
<DD>Checks if iterationCount has to be checked and if yes
(this means max is > 0) compares it with max.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>iterationCount</CODE> - the current iteration count<DD><CODE>max</CODE> - the maximum number of iterations
<DT><B>Returns:</B><DD>true if maximum has been reached</DL>
</DD>
</DL>
<HR>
<A NAME="recomputeCenters(weka.core.Instances, int[][], weka.core.Instances)"><!-- --></A><H3>
recomputeCenters</H3>
<PRE>
protected boolean <B>recomputeCenters</B>(weka.core.Instances&nbsp;centers,
int[][]&nbsp;instOfCent,
weka.core.Instances&nbsp;model)</PRE>
<DL>
<DD>Recompute the new centers. New cluster center is center of mass of its
instances. Returns true if cluster stays the same.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>centers</CODE> - the input and output centers<DD><CODE>instOfCent</CODE> - the instances to the centers<DD><CODE>model</CODE> - data model information
<DT><B>Returns:</B><DD>true if converged.</DL>
</DD>
</DL>
<HR>
<A NAME="recomputeCentersFast(weka.core.Instances, int[][], weka.core.Instances)"><!-- --></A><H3>
recomputeCentersFast</H3>
<PRE>
protected void <B>recomputeCentersFast</B>(weka.core.Instances&nbsp;centers,
int[][]&nbsp;instOfCentIndexes,
weka.core.Instances&nbsp;model)</PRE>
<DL>
<DD>Recompute the new centers - 2nd version
Same as recomputeCenters, but does not check if center stays the same.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>centers</CODE> - the input center and output centers<DD><CODE>instOfCentIndexes</CODE> - the indexes of the instances to the centers<DD><CODE>model</CODE> - data model information</DL>
</DD>
</DL>
<HR>
<A NAME="meanOrMode(weka.core.Instances, int[], int)"><!-- --></A><H3>
meanOrMode</H3>
<PRE>
protected double <B>meanOrMode</B>(weka.core.Instances&nbsp;instances,
int[]&nbsp;instList,
int&nbsp;attIndex)</PRE>
<DL>
<DD>Computes Mean Or Mode of one attribute on a subset of m_Instances.
The subset is defined by an index list.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>instances</CODE> - all instances<DD><CODE>instList</CODE> - the indexes of the instances the mean is computed from<DD><CODE>attIndex</CODE> - the index of the attribute
<DT><B>Returns:</B><DD>mean value</DL>
</DD>
</DL>
<HR>
<A NAME="assignToCenters(weka.core.neighboursearch.KDTree, weka.core.Instances, int[][], int[], int[], int)"><!-- --></A><H3>
assignToCenters</H3>
<PRE>
protected boolean <B>assignToCenters</B>(weka.core.neighboursearch.KDTree&nbsp;tree,
weka.core.Instances&nbsp;centers,
int[][]&nbsp;instOfCent,
int[]&nbsp;allInstList,
int[]&nbsp;assignments,
int&nbsp;iterationCount)
throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE>
<DL>
<DD>Assigns instances to centers.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>tree</CODE> - KDTree on all instances<DD><CODE>centers</CODE> - all the input centers<DD><CODE>instOfCent</CODE> - the instances to each center<DD><CODE>allInstList</CODE> - list of all instances<DD><CODE>assignments</CODE> - assignments of instances to centers<DD><CODE>iterationCount</CODE> - the number of iteration
<DT><B>Returns:</B><DD>true if converged
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></CODE> - is something goes wrong</DL>
</DD>
</DL>
<HR>
<A NAME="assignToCenters(weka.core.neighboursearch.KDTree, weka.core.Instances, int[][], int[], int)"><!-- --></A><H3>
assignToCenters</H3>
<PRE>
protected boolean <B>assignToCenters</B>(weka.core.neighboursearch.KDTree&nbsp;kdtree,
weka.core.Instances&nbsp;centers,
int[][]&nbsp;instOfCent,
int[]&nbsp;assignments,
int&nbsp;iterationCount)
throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE>
<DL>
<DD>Assign instances to centers using KDtree.
First part of conventionell K-Means, returns true if new assignment
is the same as the last one.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>kdtree</CODE> - KDTree on all instances<DD><CODE>centers</CODE> - all the input centers<DD><CODE>instOfCent</CODE> - the instances to each center<DD><CODE>assignments</CODE> - assignments of instances to centers<DD><CODE>iterationCount</CODE> - the number of iteration
<DT><B>Returns:</B><DD>true if converged
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></CODE> - in case instances are not assigned to cluster</DL>
</DD>
</DL>
<HR>
<A NAME="assignToCenters(weka.core.Instances, int[][], int[], int[])"><!-- --></A><H3>
assignToCenters</H3>
<PRE>
protected boolean <B>assignToCenters</B>(weka.core.Instances&nbsp;centers,
int[][]&nbsp;instOfCent,
int[]&nbsp;allInstList,
int[]&nbsp;assignments)
throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE>
<DL>
<DD>Assign instances to centers.
Part of conventionell K-Means, returns true if new assignment
is the same as the last one.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>centers</CODE> - all the input centers<DD><CODE>instOfCent</CODE> - the instances to each center<DD><CODE>allInstList</CODE> - list of all indexes<DD><CODE>assignments</CODE> - assignments of instances to centers
<DT><B>Returns:</B><DD>true if converged
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></CODE> - if something goes wrong</DL>
</DD>
</DL>
<HR>
<A NAME="nextAssignedOne(int, int, int[])"><!-- --></A><H3>
nextAssignedOne</H3>
<PRE>
protected int <B>nextAssignedOne</B>(int&nbsp;cent,
int&nbsp;lastIndex,
int[]&nbsp;assignments)</PRE>
<DL>
<DD>Searches along the assignment array for the next entry of the center
in question.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>cent</CODE> - index of the center<DD><CODE>lastIndex</CODE> - index to start searching<DD><CODE>assignments</CODE> - assignments
<DT><B>Returns:</B><DD>index of the instance the center cent is assigned to</DL>
</DD>
</DL>
<HR>
<A NAME="splitCenter(java.util.Random, weka.core.Instance, double, weka.core.Instances)"><!-- --></A><H3>
splitCenter</H3>
<PRE>
protected weka.core.Instances <B>splitCenter</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Random.html?is-external=true" title="class or interface in java.util">Random</A>&nbsp;random,
weka.core.Instance&nbsp;center,
double&nbsp;variance,
weka.core.Instances&nbsp;model)
throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE>
<DL>
<DD>Split centers in their region. Generates random vector of
length = variance and
adds and substractsx to cluster vector to get two new clusters.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>random</CODE> - random function<DD><CODE>center</CODE> - the center that is split here<DD><CODE>variance</CODE> - variance of the cluster<DD><CODE>model</CODE> - data model valid
<DT><B>Returns:</B><DD>a pair of new centers
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></CODE> - something in AlgVector goes wrong</DL>
</DD>
</DL>
<HR>
<A NAME="splitCenters(java.util.Random, weka.core.Instances, weka.core.Instances)"><!-- --></A><H3>
splitCenters</H3>
<PRE>
protected weka.core.Instances <B>splitCenters</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Random.html?is-external=true" title="class or interface in java.util">Random</A>&nbsp;random,
weka.core.Instances&nbsp;instances,
weka.core.Instances&nbsp;model)</PRE>
<DL>
<DD>Split centers in their region.
(*Alternative version of splitCenter()*)
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>random</CODE> - the random number generator<DD><CODE>instances</CODE> - of the region<DD><CODE>model</CODE> - the model for the centers
(should be the same as that of instances)
<DT><B>Returns:</B><DD>a pair of new centers</DL>
</DD>
</DL>
<HR>
<A NAME="makeCentersRandomly(java.util.Random, weka.core.Instances, int)"><!-- --></A><H3>
makeCentersRandomly</H3>
<PRE>
protected weka.core.Instances <B>makeCentersRandomly</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Random.html?is-external=true" title="class or interface in java.util">Random</A>&nbsp;random0,
weka.core.Instances&nbsp;model,
int&nbsp;numClusters)</PRE>
<DL>
<DD>Generates new centers randomly. Used for starting centers.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>random0</CODE> - random number generator<DD><CODE>model</CODE> - data model of the instances<DD><CODE>numClusters</CODE> - number of clusters
<DT><B>Returns:</B><DD>new centers</DL>
</DD>
</DL>
<HR>
<A NAME="calculateBIC(int[], weka.core.Instance, double, weka.core.Instances)"><!-- --></A><H3>
calculateBIC</H3>
<PRE>
protected double <B>calculateBIC</B>(int[]&nbsp;instList,
weka.core.Instance&nbsp;center,
double&nbsp;mle,
weka.core.Instances&nbsp;model)</PRE>
<DL>
<DD>Returns the BIC-value for the given center and instances.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>instList</CODE> - The indices of the instances that belong to the center<DD><CODE>center</CODE> - the center.<DD><CODE>mle</CODE> - maximum likelihood<DD><CODE>model</CODE> - the data model
<DT><B>Returns:</B><DD>the BIC value</DL>
</DD>
</DL>
<HR>
<A NAME="calculateBIC(int[][], weka.core.Instances, double[])"><!-- --></A><H3>
calculateBIC</H3>
<PRE>
protected double <B>calculateBIC</B>(int[][]&nbsp;instOfCent,
weka.core.Instances&nbsp;centers,
double[]&nbsp;mle)</PRE>
<DL>
<DD>Calculates the BIC for the given set of centers and instances.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>instOfCent</CODE> - The instances that belong to their respective centers<DD><CODE>centers</CODE> - the centers<DD><CODE>mle</CODE> - maximum likelihood
<DT><B>Returns:</B><DD>The BIC for the input.</DL>
</DD>
</DL>
<HR>
<A NAME="logLikelihoodEstimate(int, weka.core.Instance, double, int)"><!-- --></A><H3>
logLikelihoodEstimate</H3>
<PRE>
protected double <B>logLikelihoodEstimate</B>(int&nbsp;numInst,
weka.core.Instance&nbsp;center,
double&nbsp;distortion,
int&nbsp;numCent)</PRE>
<DL>
<DD>Calculates the log-likelihood of the data for the given model, taken
at the maximum likelihood point.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>numInst</CODE> - number of instances that belong to the center<DD><CODE>center</CODE> - the center<DD><CODE>distortion</CODE> - distortion<DD><CODE>numCent</CODE> - number of centers
<DT><B>Returns:</B><DD>the likelihood estimate</DL>
</DD>
</DL>
<HR>
<A NAME="distortion(int[][], weka.core.Instances)"><!-- --></A><H3>
distortion</H3>
<PRE>
protected double[] <B>distortion</B>(int[][]&nbsp;instOfCent,
weka.core.Instances&nbsp;centers)</PRE>
<DL>
<DD>Calculates the maximum likelihood estimate for the variance.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>instOfCent</CODE> - indices of instances to each center<DD><CODE>centers</CODE> - the centers
<DT><B>Returns:</B><DD>the list of distortions distortion.</DL>
</DD>
</DL>
<HR>
<A NAME="clusterProcessedInstance(weka.core.Instance, weka.core.Instances)"><!-- --></A><H3>
clusterProcessedInstance</H3>
<PRE>
protected int <B>clusterProcessedInstance</B>(weka.core.Instance&nbsp;instance,
weka.core.Instances&nbsp;centers)</PRE>
<DL>
<DD>Clusters an instance.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>instance</CODE> - the instance to assign a cluster to.<DD><CODE>centers</CODE> - the centers to cluster the instance to.
<DT><B>Returns:</B><DD>a cluster index.</DL>
</DD>
</DL>
<HR>
<A NAME="clusterProcessedInstance(weka.core.Instance)"><!-- --></A><H3>
clusterProcessedInstance</H3>
<PRE>
protected int <B>clusterProcessedInstance</B>(weka.core.Instance&nbsp;instance)</PRE>
<DL>
<DD>Clusters an instance that has been through the filters.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>instance</CODE> - the instance to assign a cluster to
<DT><B>Returns:</B><DD>a cluster number</DL>
</DD>
</DL>
<HR>
<A NAME="clusterInstance(weka.core.Instance)"><!-- --></A><H3>
clusterInstance</H3>
<PRE>
public int <B>clusterInstance</B>(weka.core.Instance&nbsp;instance)
throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE>
<DL>
<DD>Classifies a given instance.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>clusterInstance</CODE> in interface <CODE>weka.clusterers.Clusterer</CODE><DT><B>Overrides:</B><DD><CODE>clusterInstance</CODE> in class <CODE>weka.clusterers.AbstractClusterer</CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>instance</CODE> - the instance to be assigned to a cluster
<DT><B>Returns:</B><DD>the number of the assigned cluster as an integer
if the class is enumerated, otherwise the predicted value
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></CODE> - if instance could not be classified
successfully</DL>
</DD>
</DL>
<HR>
<A NAME="numberOfClusters()"><!-- --></A><H3>
numberOfClusters</H3>
<PRE>
public int <B>numberOfClusters</B>()</PRE>
<DL>
<DD>Returns the number of clusters.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>numberOfClusters</CODE> in interface <CODE>weka.clusterers.Clusterer</CODE><DT><B>Specified by:</B><DD><CODE>numberOfClusters</CODE> in class <CODE>weka.clusterers.AbstractClusterer</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the number of clusters generated for a training dataset.</DL>
</DD>
</DL>
<HR>
<A NAME="listOptions()"><!-- --></A><H3>
listOptions</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</A> <B>listOptions</B>()</PRE>
<DL>
<DD>Returns an enumeration describing the available options.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>listOptions</CODE> in interface <CODE>weka.core.OptionHandler</CODE><DT><B>Overrides:</B><DD><CODE>listOptions</CODE> in class <CODE>weka.clusterers.RandomizableClusterer</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>an enumeration of all the available options</DL>
</DD>
</DL>
<HR>
<A NAME="minNumClustersTipText()"><!-- --></A><H3>
minNumClustersTipText</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>minNumClustersTipText</B>()</PRE>
<DL>
<DD>Returns the tip text for this property.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>tip text for this property</DL>
</DD>
</DL>
<HR>
<A NAME="setMinNumClusters(int)"><!-- --></A><H3>
setMinNumClusters</H3>
<PRE>
public void <B>setMinNumClusters</B>(int&nbsp;n)</PRE>
<DL>
<DD>Sets the minimum number of clusters to generate.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>n</CODE> - the minimum number of clusters to generate</DL>
</DD>
</DL>
<HR>
<A NAME="getMinNumClusters()"><!-- --></A><H3>
getMinNumClusters</H3>
<PRE>
public int <B>getMinNumClusters</B>()</PRE>
<DL>
<DD>Gets the minimum number of clusters to generate.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the minimum number of clusters to generate</DL>
</DD>
</DL>
<HR>
<A NAME="maxNumClustersTipText()"><!-- --></A><H3>
maxNumClustersTipText</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>maxNumClustersTipText</B>()</PRE>
<DL>
<DD>Returns the tip text for this property.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>tip text for this property</DL>
</DD>
</DL>
<HR>
<A NAME="setMaxNumClusters(int)"><!-- --></A><H3>
setMaxNumClusters</H3>
<PRE>
public void <B>setMaxNumClusters</B>(int&nbsp;n)</PRE>
<DL>
<DD>Sets the maximum number of clusters to generate.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>n</CODE> - the maximum number of clusters to generate</DL>
</DD>
</DL>
<HR>
<A NAME="getMaxNumClusters()"><!-- --></A><H3>
getMaxNumClusters</H3>
<PRE>
public int <B>getMaxNumClusters</B>()</PRE>
<DL>
<DD>Gets the maximum number of clusters to generate.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the maximum number of clusters to generate</DL>
</DD>
</DL>
<HR>
<A NAME="maxIterationsTipText()"><!-- --></A><H3>
maxIterationsTipText</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>maxIterationsTipText</B>()</PRE>
<DL>
<DD>Returns the tip text for this property.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>tip text for this property</DL>
</DD>
</DL>
<HR>
<A NAME="setMaxIterations(int)"><!-- --></A><H3>
setMaxIterations</H3>
<PRE>
public void <B>setMaxIterations</B>(int&nbsp;i)
throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE>
<DL>
<DD>Sets the maximum number of iterations to perform.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>i</CODE> - the number of iterations
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></CODE> - if i is less than 1</DL>
</DD>
</DL>
<HR>
<A NAME="getMaxIterations()"><!-- --></A><H3>
getMaxIterations</H3>
<PRE>
public int <B>getMaxIterations</B>()</PRE>
<DL>
<DD>Gets the maximum number of iterations.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the number of iterations</DL>
</DD>
</DL>
<HR>
<A NAME="maxKMeansTipText()"><!-- --></A><H3>
maxKMeansTipText</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>maxKMeansTipText</B>()</PRE>
<DL>
<DD>Returns the tip text for this property.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>tip text for this property</DL>
</DD>
</DL>
<HR>
<A NAME="setMaxKMeans(int)"><!-- --></A><H3>
setMaxKMeans</H3>
<PRE>
public void <B>setMaxKMeans</B>(int&nbsp;i)</PRE>
<DL>
<DD>Set the maximum number of iterations to perform in KMeans.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>i</CODE> - the number of iterations</DL>
</DD>
</DL>
<HR>
<A NAME="getMaxKMeans()"><!-- --></A><H3>
getMaxKMeans</H3>
<PRE>
public int <B>getMaxKMeans</B>()</PRE>
<DL>
<DD>Gets the maximum number of iterations in KMeans.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the number of iterations</DL>
</DD>
</DL>
<HR>
<A NAME="maxKMeansForChildrenTipText()"><!-- --></A><H3>
maxKMeansForChildrenTipText</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>maxKMeansForChildrenTipText</B>()</PRE>
<DL>
<DD>Returns the tip text for this property.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>tip text for this property</DL>
</DD>
</DL>
<HR>
<A NAME="setMaxKMeansForChildren(int)"><!-- --></A><H3>
setMaxKMeansForChildren</H3>
<PRE>
public void <B>setMaxKMeansForChildren</B>(int&nbsp;i)</PRE>
<DL>
<DD>Sets the maximum number of iterations KMeans that is performed
on the child centers.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>i</CODE> - the number of iterations</DL>
</DD>
</DL>
<HR>
<A NAME="getMaxKMeansForChildren()"><!-- --></A><H3>
getMaxKMeansForChildren</H3>
<PRE>
public int <B>getMaxKMeansForChildren</B>()</PRE>
<DL>
<DD>Gets the maximum number of iterations in KMeans.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the number of iterations</DL>
</DD>
</DL>
<HR>
<A NAME="cutOffFactorTipText()"><!-- --></A><H3>
cutOffFactorTipText</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>cutOffFactorTipText</B>()</PRE>
<DL>
<DD>Returns the tip text for this property.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>tip text for this property</DL>
</DD>
</DL>
<HR>
<A NAME="setCutOffFactor(double)"><!-- --></A><H3>
setCutOffFactor</H3>
<PRE>
public void <B>setCutOffFactor</B>(double&nbsp;i)</PRE>
<DL>
<DD>Sets a new cutoff factor.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>i</CODE> - the new cutoff factor</DL>
</DD>
</DL>
<HR>
<A NAME="getCutOffFactor()"><!-- --></A><H3>
getCutOffFactor</H3>
<PRE>
public double <B>getCutOffFactor</B>()</PRE>
<DL>
<DD>Gets the cutoff factor.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the cutoff factor</DL>
</DD>
</DL>
<HR>
<A NAME="binValueTipText()"><!-- --></A><H3>
binValueTipText</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>binValueTipText</B>()</PRE>
<DL>
<DD>Returns the tip text for this property.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>tip text for this property suitable for
displaying in the explorer/experimenter gui</DL>
</DD>
</DL>
<HR>
<A NAME="getBinValue()"><!-- --></A><H3>
getBinValue</H3>
<PRE>
public double <B>getBinValue</B>()</PRE>
<DL>
<DD>Gets value that represents true in a new numeric attribute.
(False is always represented by 0.0.)
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the value that represents true in a new numeric attribute</DL>
</DD>
</DL>
<HR>
<A NAME="setBinValue(double)"><!-- --></A><H3>
setBinValue</H3>
<PRE>
public void <B>setBinValue</B>(double&nbsp;value)</PRE>
<DL>
<DD>Sets the distance value between true and false of binary attributes.
and "same" and "different" of nominal attributes
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - the distance</DL>
</DD>
</DL>
<HR>
<A NAME="distanceFTipText()"><!-- --></A><H3>
distanceFTipText</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>distanceFTipText</B>()</PRE>
<DL>
<DD>Returns the tip text for this property.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>tip text for this property suitable for
displaying in the explorer/experimenter gui</DL>
</DD>
</DL>
<HR>
<A NAME="setDistanceF(weka.core.DistanceFunction)"><!-- --></A><H3>
setDistanceF</H3>
<PRE>
public void <B>setDistanceF</B>(weka.core.DistanceFunction&nbsp;distanceF)</PRE>
<DL>
<DD>gets the "binary" distance value.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>distanceF</CODE> - the distance function with all options set</DL>
</DD>
</DL>
<HR>
<A NAME="getDistanceF()"><!-- --></A><H3>
getDistanceF</H3>
<PRE>
public weka.core.DistanceFunction <B>getDistanceF</B>()</PRE>
<DL>
<DD>Gets the distance function.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the distance function</DL>
</DD>
</DL>
<HR>
<A NAME="getDistanceFSpec()"><!-- --></A><H3>
getDistanceFSpec</H3>
<PRE>
protected <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getDistanceFSpec</B>()</PRE>
<DL>
<DD>Gets the distance function specification string, which contains the
class name of the distance function class and any options to it.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the distance function specification string</DL>
</DD>
</DL>
<HR>
<A NAME="debugVectorsFileTipText()"><!-- --></A><H3>
debugVectorsFileTipText</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>debugVectorsFileTipText</B>()</PRE>
<DL>
<DD>Returns the tip text for this property.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>tip text for this property suitable for
displaying in the explorer/experimenter gui</DL>
</DD>
</DL>
<HR>
<A NAME="setDebugVectorsFile(java.io.File)"><!-- --></A><H3>
setDebugVectorsFile</H3>
<PRE>
public void <B>setDebugVectorsFile</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;value)</PRE>
<DL>
<DD>Sets the file that has the random vectors stored.
Only used for debugging reasons.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - the file to read the random vectors from</DL>
</DD>
</DL>
<HR>
<A NAME="getDebugVectorsFile()"><!-- --></A><H3>
getDebugVectorsFile</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> <B>getDebugVectorsFile</B>()</PRE>
<DL>
<DD>Gets the file name for a file that has the random vectors stored.
Only used for debugging purposes.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the file to read the vectors from</DL>
</DD>
</DL>
<HR>
<A NAME="initDebugVectorsInput()"><!-- --></A><H3>
initDebugVectorsInput</H3>
<PRE>
public void <B>initDebugVectorsInput</B>()
throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE>
<DL>
<DD>Initialises the debug vector input.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></CODE> - if there is error
opening the debug input file.</DL>
</DD>
</DL>
<HR>
<A NAME="getNextDebugVectorsInstance(weka.core.Instances)"><!-- --></A><H3>
getNextDebugVectorsInstance</H3>
<PRE>
public weka.core.Instance <B>getNextDebugVectorsInstance</B>(weka.core.Instances&nbsp;model)
throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE>
<DL>
<DD>Read an instance from debug vectors file.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>model</CODE> - the data model for the instance.
<DT><B>Returns:</B><DD>the next debug vector.
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></CODE> - if there are no debug vector
in m_DebugVectors.</DL>
</DD>
</DL>
<HR>
<A NAME="inputCenterFileTipText()"><!-- --></A><H3>
inputCenterFileTipText</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>inputCenterFileTipText</B>()</PRE>
<DL>
<DD>Returns the tip text for this property.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>tip text for this property suitable for
displaying in the explorer/experimenter gui</DL>
</DD>
</DL>
<HR>
<A NAME="setInputCenterFile(java.io.File)"><!-- --></A><H3>
setInputCenterFile</H3>
<PRE>
public void <B>setInputCenterFile</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;value)</PRE>
<DL>
<DD>Sets the file to read the list of centers from.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - the file to read centers from</DL>
</DD>
</DL>
<HR>
<A NAME="getInputCenterFile()"><!-- --></A><H3>
getInputCenterFile</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> <B>getInputCenterFile</B>()</PRE>
<DL>
<DD>Gets the file to read the list of centers from.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the file to read the centers from</DL>
</DD>
</DL>
<HR>
<A NAME="outputCenterFileTipText()"><!-- --></A><H3>
outputCenterFileTipText</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>outputCenterFileTipText</B>()</PRE>
<DL>
<DD>Returns the tip text for this property.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>tip text for this property suitable for
displaying in the explorer/experimenter gui</DL>
</DD>
</DL>
<HR>
<A NAME="setOutputCenterFile(java.io.File)"><!-- --></A><H3>
setOutputCenterFile</H3>
<PRE>
public void <B>setOutputCenterFile</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A>&nbsp;value)</PRE>
<DL>
<DD>Sets file to write the list of centers to.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - file to write centers to</DL>
</DD>
</DL>
<HR>
<A NAME="getOutputCenterFile()"><!-- --></A><H3>
getOutputCenterFile</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</A> <B>getOutputCenterFile</B>()</PRE>
<DL>
<DD>Gets the file to write the list of centers to.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>filename of the file to write centers to</DL>
</DD>
</DL>
<HR>
<A NAME="KDTreeTipText()"><!-- --></A><H3>
KDTreeTipText</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>KDTreeTipText</B>()</PRE>
<DL>
<DD>Returns the tip text for this property.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>tip text for this property suitable for
displaying in the explorer/experimenter gui</DL>
</DD>
</DL>
<HR>
<A NAME="setKDTree(weka.core.neighboursearch.KDTree)"><!-- --></A><H3>
setKDTree</H3>
<PRE>
public void <B>setKDTree</B>(weka.core.neighboursearch.KDTree&nbsp;k)</PRE>
<DL>
<DD>Sets the KDTree class.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>k</CODE> - a KDTree object with all options set</DL>
</DD>
</DL>
<HR>
<A NAME="getKDTree()"><!-- --></A><H3>
getKDTree</H3>
<PRE>
public weka.core.neighboursearch.KDTree <B>getKDTree</B>()</PRE>
<DL>
<DD>Gets the KDTree class.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the configured KDTree</DL>
</DD>
</DL>
<HR>
<A NAME="useKDTreeTipText()"><!-- --></A><H3>
useKDTreeTipText</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>useKDTreeTipText</B>()</PRE>
<DL>
<DD>Returns the tip text for this property.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>tip text for this property suitable for
displaying in the explorer/experimenter gui</DL>
</DD>
</DL>
<HR>
<A NAME="setUseKDTree(boolean)"><!-- --></A><H3>
setUseKDTree</H3>
<PRE>
public void <B>setUseKDTree</B>(boolean&nbsp;value)</PRE>
<DL>
<DD>Sets whether to use the KDTree or not.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - if true the KDTree is used</DL>
</DD>
</DL>
<HR>
<A NAME="getUseKDTree()"><!-- --></A><H3>
getUseKDTree</H3>
<PRE>
public boolean <B>getUseKDTree</B>()</PRE>
<DL>
<DD>Gets whether the KDTree is used or not.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>true if KDTrees are used</DL>
</DD>
</DL>
<HR>
<A NAME="getKDTreeSpec()"><!-- --></A><H3>
getKDTreeSpec</H3>
<PRE>
protected <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getKDTreeSpec</B>()</PRE>
<DL>
<DD>Gets the KDTree specification string, which contains the class name of
the KDTree class and any options to the KDTree.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the KDTree string.</DL>
</DD>
</DL>
<HR>
<A NAME="debugLevelTipText()"><!-- --></A><H3>
debugLevelTipText</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>debugLevelTipText</B>()</PRE>
<DL>
<DD>Returns the tip text for this property.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>tip text for this property suitable for
displaying in the explorer/experimenter gui</DL>
</DD>
</DL>
<HR>
<A NAME="setDebugLevel(int)"><!-- --></A><H3>
setDebugLevel</H3>
<PRE>
public void <B>setDebugLevel</B>(int&nbsp;d)</PRE>
<DL>
<DD>Sets the debug level.
debug level = 0, means no output
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>d</CODE> - debuglevel</DL>
</DD>
</DL>
<HR>
<A NAME="getDebugLevel()"><!-- --></A><H3>
getDebugLevel</H3>
<PRE>
public int <B>getDebugLevel</B>()</PRE>
<DL>
<DD>Gets the debug level.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>debug level</DL>
</DD>
</DL>
<HR>
<A NAME="checkInstances()"><!-- --></A><H3>
checkInstances</H3>
<PRE>
protected void <B>checkInstances</B>()</PRE>
<DL>
<DD>Checks the instances.
No checks in this KDTree but it calls the check of the distance function.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setOptions(java.lang.String[])"><!-- --></A><H3>
setOptions</H3>
<PRE>
public void <B>setOptions</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;options)
throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE>
<DL>
<DD>Parses a given list of options. <p/>
<!-- options-start -->
Valid options are: <p/>
<pre> -I &lt;num&gt;
maximum number of overall iterations
(default 1).</pre>
<pre> -M &lt;num&gt;
maximum number of iterations in the kMeans loop in
the Improve-Parameter part
(default 1000).</pre>
<pre> -J &lt;num&gt;
maximum number of iterations in the kMeans loop
for the splitted centroids in the Improve-Structure part
(default 1000).</pre>
<pre> -L &lt;num&gt;
minimum number of clusters
(default 2).</pre>
<pre> -H &lt;num&gt;
maximum number of clusters
(default 4).</pre>
<pre> -B &lt;value&gt;
distance value for binary attributes
(default 1.0).</pre>
<pre> -use-kdtree
Uses the KDTree internally
(default no).</pre>
<pre> -K &lt;KDTree class specification&gt;
Full class name of KDTree class to use, followed
by scheme options.
eg: "weka.core.neighboursearch.kdtrees.KDTree -P"
(default no KDTree class used).</pre>
<pre> -C &lt;value&gt;
cutoff factor, takes the given percentage of the splitted
centroids if none of the children win
(default 0.0).</pre>
<pre> -D &lt;distance function class specification&gt;
Full class name of Distance function class to use, followed
by scheme options.
(default weka.core.EuclideanDistance).</pre>
<pre> -N &lt;file name&gt;
file to read starting centers from (ARFF format).</pre>
<pre> -O &lt;file name&gt;
file to write centers to (ARFF format).</pre>
<pre> -U &lt;int&gt;
The debug level.
(default 0)</pre>
<pre> -Y &lt;file name&gt;
The debug vectors file.</pre>
<pre> -S &lt;num&gt;
Random number seed.
(default 10)</pre>
<!-- options-end -->
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>setOptions</CODE> in interface <CODE>weka.core.OptionHandler</CODE><DT><B>Overrides:</B><DD><CODE>setOptions</CODE> in class <CODE>weka.clusterers.RandomizableClusterer</CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>options</CODE> - the list of options as an array of strings
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></CODE> - if an option is not supported</DL>
</DD>
</DL>
<HR>
<A NAME="getOptions()"><!-- --></A><H3>
getOptions</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] <B>getOptions</B>()</PRE>
<DL>
<DD>Gets the current settings of SimpleKMeans.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>getOptions</CODE> in interface <CODE>weka.core.OptionHandler</CODE><DT><B>Overrides:</B><DD><CODE>getOptions</CODE> in class <CODE>weka.clusterers.RandomizableClusterer</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>an array of strings suitable for passing to setOptions</DL>
</DD>
</DL>
<HR>
<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE>
<DL>
<DD>Return a string describing this clusterer.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>a description of the clusterer as a string</DL>
</DD>
</DL>
<HR>
<A NAME="getClusterCenters()"><!-- --></A><H3>
getClusterCenters</H3>
<PRE>
public weka.core.Instances <B>getClusterCenters</B>()</PRE>
<DL>
<DD>Return the centers of the clusters as an Instances object
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the cluster centers.</DL>
</DD>
</DL>
<HR>
<A NAME="PrCentersFD(int)"><!-- --></A><H3>
PrCentersFD</H3>
<PRE>
protected void <B>PrCentersFD</B>(int&nbsp;debugLevel)</PRE>
<DL>
<DD>Print centers for debug.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>debugLevel</CODE> - level that gives according messages</DL>
</DD>
</DL>
<HR>
<A NAME="TFD(int)"><!-- --></A><H3>
TFD</H3>
<PRE>
protected boolean <B>TFD</B>(int&nbsp;debugLevel)</PRE>
<DL>
<DD>Tests on debug status.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>debugLevel</CODE> - level that gives according messages
<DT><B>Returns:</B><DD>true if debug level is set</DL>
</DD>
</DL>
<HR>
<A NAME="PFD(int, java.lang.String)"><!-- --></A><H3>
PFD</H3>
<PRE>
protected void <B>PFD</B>(int&nbsp;debugLevel,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;output)</PRE>
<DL>
<DD>Does debug printouts.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>debugLevel</CODE> - level that gives according messages<DD><CODE>output</CODE> - string that is printed</DL>
</DD>
</DL>
<HR>
<A NAME="PFD_CURR(java.lang.String)"><!-- --></A><H3>
PFD_CURR</H3>
<PRE>
protected void <B>PFD_CURR</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;output)</PRE>
<DL>
<DD>Does debug printouts.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>output</CODE> - string that is printed</DL>
</DD>
</DL>
<HR>
<A NAME="getRevision()"><!-- --></A><H3>
getRevision</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getRevision</B>()</PRE>
<DL>
<DD>Returns the revision string.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>getRevision</CODE> in interface <CODE>weka.core.RevisionHandler</CODE><DT><B>Overrides:</B><DD><CODE>getRevision</CODE> in class <CODE>weka.clusterers.AbstractClusterer</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the revision</DL>
</DD>
</DL>
<HR>
<A NAME="main(java.lang.String[])"><!-- --></A><H3>
main</H3>
<PRE>
public static void <B>main</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;argv)</PRE>
<DL>
<DD>Main method for testing this class.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>argv</CODE> - should contain options</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/XMeans.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/KMeans.html" title="class in org.gcube.dataanalysis.ecoengine.clustering"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../../org/gcube/dataanalysis/ecoengine/clustering/XMeansWrapper.html" title="class in org.gcube.dataanalysis.ecoengine.clustering"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?org/gcube/dataanalysis/ecoengine/clustering/XMeans.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="XMeans.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright &#169; 2012. All Rights Reserved.
</BODY>
</HTML>