| TDAT: private void updateNearestNeighbours() { | |
| for (List<V> nn : nearestNeighbours) { | |
| nn.clear(); | |
| } | |
| for (int i = 0; i < nearestCentroid.length; ++i) { | |
| int nearest = nearestCentroid[i]; | |
| nearestNeighbours.get(nearest).add(vectors.get(i)); | |
| } | |
| } | |
| COM: <s> pre nearest centroid has been updated with nearest indexes </s> | |