homelab-docker-compose/rstudio/Übungen/Clustering.R
2026-02-16 09:40:38 +00:00

7 lines
No EOL
161 B
R

daten <- c(-11, -10, -9, -1, 0, 1, 9, 10, 11)
startwerte <- matrix(c(9, 10, 11), ncol = 1)
clustering <- kmeans(daten, centers = startwerte)
print(clustering)