Skip to content

Commit

Permalink
Restored the cloning behavior of the Centroid constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
tdunning committed Mar 30, 2012
1 parent ec6e552 commit b9386b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/apache/mahout/knn/Centroid.java
Expand Up @@ -35,7 +35,7 @@ public Centroid(Centroid original) {
}

public Centroid(int key, Vector initialValue) {
super(initialValue);
super(initialValue.clone());
this.key = key;
this.weight = 1;
}
Expand Down

0 comments on commit b9386b2

Please sign in to comment.