Sometimes I'm getting this error when trying to find Clusters on a Vector2[].
The error points to this line clusters[clustering[i]][clustersCurIdx[clustering[i]]] = i;, in the KMeans class.
int[] clustersCurIdx = new int[clusterCount];
for (int i = 0; i < clustering.Length; i++) {
clusters[clustering[i]][clustersCurIdx[clustering[i]]] = i;
++clustersCurIdx[clustering[i]];
}
Sometimes I'm getting this error when trying to find Clusters on a Vector2[].
The error points to this line
clusters[clustering[i]][clustersCurIdx[clustering[i]]] = i;
, in theKMeans
class.