private void updateMeans() {
		if(option.equals(ConfigFile.dataPointOption)) {
			for (int i = 0; i < clusterMeans.length; i++) { // 2-D array.length! Who made this!
	            double[] mean = new double[clusterMeans[0].length];
	            int elements = 0;
	            for (int j = 0; j < data.size(); j++) {
	                if (resultingSet[j] == i) { // 
	                    elements++;
	                    double[] d = data.get(j);
	                    for (int k = 0; k < d.length; k++) {
	                        mean[k] += d[k];
	                    }
	                }
	            }
	            if (elements > 0) {
	                for (int j = 0; j < mean.length; j++) {
	                    mean[j] /= elements;
	                }
	                clusterMeans[i] = mean;
	            }
	        }
		}
	}