Hi,
Curiosity question: why not use point.clone() in the constructor for
org.apache.mahout.clustering.AbstractCluster()?
This would allow the use of DenseVector, which is much faster (no dictionary
lookups) when clustering dense SIFT descriptors to form visual words (instead
of sparse document vectors).
Thanks,
Dave
protected AbstractCluster(Vector point, int id2) {
setNumObservations(0);
setTotalObservations(0);
//setCenter(new RandomAccessSparseVector(point));
setCenter(point.clone());
setRadius(center.like());
setS0(0);
setS1(center.like());
setS2(center.like());
this.id = id2;
}