public static float[][] getClusterDistance(int kc, float[][][] X, int min) {
		float tempX[][] = new float[kc][2];
		float tempY[][] = new float[kc][2];
		for (int i = 0; i < X.length; i++) {
			for (int j = 0; j < X.length; j++) {
				if ((int) X[i][0][0] >= min) {
					if (X[i][0][0] == X[j][0][0]) {
						tempX[(int) X[i][0][0] - min][0] = (int) X[i][0][0];
						tempY[(int) X[i][0][0] - min][0] = (int) X[i][0][0];
						tempX[(int) X[i][0][0] - min][1] = tempX[(int) X[i][0][0]
								- min][1]
								+ getDataDistance(X[i][1], X[j][1]);
						tempY[(int) X[i][0][0] - min][1] = tempY[(int) X[i][0][0]
								- min][1] + 1;
					}
				}
			}
		}
		for (int i = 0; i < tempX.length; i++) {
			tempX[i][1] = tempX[i][1] / tempY[i][1];
		}
		return tempX;
	}