You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by je...@apache.org on 2009/06/25 18:43:29 UTC
svn commit: r788420 -
/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/ClusterBase.java
Author: jeastman
Date: Thu Jun 25 16:43:29 2009
New Revision: 788420
URL: http://svn.apache.org/viewvc?rev=788420&view=rev
Log:
- cleaned up comments, changing 'canopy' to 'cluster' for uniformity
- no semantic changes
Modified:
lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/ClusterBase.java
Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/ClusterBase.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/ClusterBase.java?rev=788420&r1=788419&r2=788420&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/ClusterBase.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/ClusterBase.java Thu Jun 25 16:43:29 2009
@@ -8,21 +8,21 @@
import java.io.IOException;
import java.io.DataInput;
-
/**
*
*
**/
public abstract class ClusterBase implements Writable {
- // this canopy's canopyId
+ // this cluster's clusterId
protected int id;
- // the current center
+
+ // the current cluster center
protected Vector center = new SparseVector(0);
- // the number of points in the canopy
+ // the number of points in the cluster
protected int numPoints = 0;
- // the total of all points added to the cluster
+ // the Vector total of all points added to the cluster
protected Vector pointTotal = null;
public Vector getPointTotal() {
@@ -35,8 +35,8 @@
/**
* Return the center point
- *
- * @return the center of the Canopy
+ *
+ * @return the center of the Cluster
*/
public Vector getCenter() {
return center;
@@ -47,8 +47,10 @@
}
public abstract String asFormatString();
+
/**
* Simply writes out the id, and that's it!
+ *
* @param out The {@link java.io.DataOutput}
* @throws IOException
*/
@@ -58,6 +60,7 @@
/**
* Reads in the id, nothing else
+ *
* @param in
* @throws IOException
*/