projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3b5559
)
back out change
author
bdemsky
<bdemsky>
Fri, 16 Oct 2009 03:17:25 +0000
(
03:17
+0000)
committer
bdemsky
<bdemsky>
Fri, 16 Oct 2009 03:17:25 +0000
(
03:17
+0000)
Robust/src/Benchmarks/SingleTM/KMeans/Normal.java
patch
|
blob
|
history
diff --git
a/Robust/src/Benchmarks/SingleTM/KMeans/Normal.java
b/Robust/src/Benchmarks/SingleTM/KMeans/Normal.java
index 1ce66cc972688aea13528a37d4eb4ebe1847d89d..25b425e11fe9213712a2cad201b1184029952b0c 100644
(file)
--- a/
Robust/src/Benchmarks/SingleTM/KMeans/Normal.java
+++ b/
Robust/src/Benchmarks/SingleTM/KMeans/Normal.java
@@
-223,7
+223,7
@@
public class Normal {
/* Replace old cluster centers with new_centers */
for (int i = 0; i < nclusters; i++) {
for (int j = 0; j < nfeatures; j++) {
- if (new_centers_len
!= null
) {
+ if (new_centers_len
[i] > 0
) {
clusters[i][j] = new_centers[i][j] / new_centers_len[i];
}
new_centers[i][j] = (float)0.0; /* set back to 0 */