while to for

This commit is contained in:
joedarby
2016-12-16 16:20:07 +00:00
parent aecc34c885
commit f5755b193c
+1 -2
View File
@@ -28,9 +28,8 @@ object KMeans {
for (i <- 0 until K) {
centres(i) = randomCentres(i)
}*/
var i = 0
while (i < iterations) {
for (i <- 0 until iterations) {
clustering(centres)
}