private float[][] generateRandomCenters() {
		Random random = new Random();
		float[][] centers = new float[K][dimension];
		for(int j = 0; j < dimension; ++j) {
			float min = values[0][0][j];
			float max = values[0][0][j];
			for(int a = 0; a < height; ++a)
				for(int b = 0; b < width; ++b) {
					if(values[a][b][j] > max)
						max = values[a][b][j];
					if(values[a][b][j] < min)
						min = values[a][b][j];
				}
			for(int i = 0; i < K ; ++i)
				centers[i][j] = random.nextFloat() * (max - min) + min;
		}
		return centers;
	}