~ubuntu-branches/ubuntu/utopic/weka/utopic-proposed

« back to all changes in this revision

Viewing changes to src/main/java/weka/clusterers/XMeans.java

  • Committer: Package Import Robot
  • Author(s): tony mancill
  • Date: 2014-05-03 15:49:06 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20140503154906-s15hy2fdjy9geixq
Tags: 3.6.11-1
* New upstream release.
* Update wrapper script to work with any java6-runtime.

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
 * @author Gabi Schmidberger (gabi@cs.waikato.ac.nz)
150
150
 * @author Mark Hall (mhall@cs.waikato.ac.nz)
151
151
 * @author Malcolm Ware (mfw4@cs.waikato.ac.nz)
152
 
 * @version $Revision: 7135 $
 
152
 * @version $Revision: 9986 $
153
153
 * @see RandomizableClusterer
154
154
 */
155
155
public class XMeans 
229
229
  protected File m_DebugVectorsFile = new File(System.getProperty("user.dir"));
230
230
 
231
231
  /** input file for the cluster centers. */
232
 
  protected Reader m_CenterInput = null;
 
232
  protected transient Reader m_CenterInput = null;
233
233
    
234
234
  /** file name of the output file for the cluster centers. */
235
235
  protected File m_OutputCenterFile = new File(System.getProperty("user.dir"));
236
236
  
237
237
  /** output file for the cluster centers. */
238
 
  protected PrintWriter m_CenterOutput = null;
 
238
  protected transient PrintWriter m_CenterOutput = null;
239
239
    
240
240
  /**
241
241
   * temporary variable holding cluster assignments while iterating.
641
641
      }
642
642
      m_NumClusters = newNumClusters;
643
643
    }
 
644
    
 
645
    if (m_ClusterCenters.numInstances() > 0 && m_CenterOutput != null) {
 
646
      m_CenterOutput.println(m_ClusterCenters.toString());
 
647
      m_CenterOutput.close();
 
648
      m_CenterOutput = null;
 
649
    }    
644
650
  }
645
651
 
646
652
  /**
2406
2412
   * @return            the revision
2407
2413
   */
2408
2414
  public String getRevision() {
2409
 
    return RevisionUtils.extract("$Revision: 7135 $");
 
2415
    return RevisionUtils.extract("$Revision: 9986 $");
2410
2416
  }
2411
2417
 
2412
2418
  /**