public static double[][] GetConfusionMatrix()
	{
		//row r and column c is the percentage of test images from class r that are classified as class c
		//matrix[0][0] -> percentage of test images from class IsFace that are classified as class IsFace
		//matrix[0][1] -> percentage of test images from class IsFace that are classified as class NonFace
		//matrix[1][0] -> percentage of test images from class NonFace that are classified as class IsFace
		//matrix[1][1] -> percentage of test images from class NonFace that are classified as class NonFace
		double[][] matrix = new double[2][2];
		
		//Calc matrix[0][0]
		double numIsFace = 0;
		double numClassifiedIsFaceInFace = 0;
		double numClassifiedNonFaceInFace = 0;
		double numNonFace = 0;
		double numClassifiedIsFaceInNonFace = 0;
		double numClassifiedNonFaceInNonFace = 0;
		for(Face f: testingFaces)
		{
			if(f.isFace)
			{
				numIsFace++;
				if(TestingSingleFace(f))
				{
					numClassifiedIsFaceInFace++;
				}else
				{
					numClassifiedNonFaceInFace++;
				}
			}else
			{
				numNonFace++;
				if(TestingSingleFace(f))
				{
					numClassifiedIsFaceInNonFace++;
				}else{
					numClassifiedNonFaceInNonFace++;
				}
			}
		}
		matrix[0][0] = numClassifiedIsFaceInFace/numIsFace;
		System.out.println("percentage of test images from class IsFace that are classified as class IsFace: " + matrix[0][0]);
		matrix[0][1] = numClassifiedIsFaceInNonFace/numNonFace;
		System.out.println("percentage of test images from class IsFace that are classified as class NonFace: " + matrix[0][1]);
		matrix[1][0] = numClassifiedNonFaceInFace/numIsFace;
		System.out.println("percentage of test images from class NonFace that are classified as class IsFace: " + matrix[1][0]);
		matrix[1][1] = numClassifiedNonFaceInNonFace/numNonFace;
		System.out.println("percentage of test images from class NonFace that are classified as class NonFace: " + matrix[1][1]);
		
		return matrix;
		
	}