Skip to main content
100%

K Means

✓ Published0🌍 Public
HHariprashanth75
Last edited Apr 9, 2021
Created on Apr 9, 2021

This visualization demonstrates k-means clustering on EEG data, showing how four centroids iteratively partition points into clusters based on their F3 and P4 channel values. The animation runs for ten iterations, updating cluster assignments and recalculating centroid positions with each step. The code uses d3.csv to load the dataset, d3.schemeCategory10 for cluster colors, d3.mean for computing cluster centers, and D3 transitions to animate point movements and color changes. A setInterval drives the iterative process, while text elements display the current iteration number.

AI-generated description
MIT Licensed

Similar vizzes