public void posteriorDistribution() {
		double tiC1 = 0, tiC2 = 0, tiC3 = 0, pTi = 0, pC1Ti, pC2Ti, pC3Ti;
		System.out.println(testNum);
		for (int i = 0; i < testNum; i++) {
			System.out.println(i);
			tiC1 = getPTiCi(pXiC1Map, testData.get(i));
			tiC2 = getPTiCi(pXiC2Map, testData.get(i));
			tiC3 = getPTiCi(pXiC3Map, testData.get(i));
			pTi = tiC1 * priorProbability[0] + tiC2 * priorProbability[1]
					+ tiC3 * priorProbability[2];
			pC1Ti = tiC1 * priorProbability[0] / pTi;
			pC2Ti = tiC2 * priorProbability[1] / pTi;
			pC3Ti = tiC3 * priorProbability[2] / pTi;
			int max = 1;
			if (pC2Ti >= pC1Ti && pC2Ti >= pC3Ti) {
				max = 2;
			} else if (pC3Ti >= pC1Ti && pC3Ti >= pC2Ti) {
				max = 3;
			}
			pCiTi[i][0] = testData.get(i).get(0) + 0.0;
			pCiTi[i][1] = pC1Ti;
			pCiTi[i][2] = pC2Ti;
			pCiTi[i][3] = pC3Ti;
			pCiTi[i][4] = (double) max;
			if (testData.get(i).get(0) != max) {
				ma.setWrong(ma.getWrong() + 1);
			}
			ma.setAccuracyRate(ma.getWrong(), testNum);
			ma.setErrorRate(ma.getWrong(), testNum);
		}
	}