Skip to content

Commit c033461

Browse files
committed
Merge pull request apache#79 from sun-rui/fix-kmeans
Fix syntax error in examples/kmeans.R.
2 parents 5304451 + f62b77e commit c033461

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/kmeans.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ dist.fun <- function(P, C) {
1414
C,
1515
1,
1616
function(x) {
17-
colSums((t(P) - x)^2))
17+
colSums((t(P) - x)^2)
1818
}
19+
)
1920
}
2021

2122
closestPoint <- function(P, C) {

0 commit comments

Comments
 (0)