private void testData() {
		if ((useKNN() && knn != null) || (!useKNN() && gaussian != null)) {
			int c = 1;
			int numClasses = getNumTestClasses();
			int[][] confusionMatrix = new int[numClasses][numClasses];
			while (classHasFiles(String.format("c:/ordata/test-%s",testTextField.getText()), String.format("%d",c))) {
				int i = 1;
				boolean done = false;
				while (!done) {
					String strFileName = String.format("c:/ordata/test-%s/c%d-%d.jpg",testTextField.getText(),c,i);
					File f = new File(strFileName);
					if (f.exists()) {
						System.out.printf("Processing '%s'\n", strFileName);
						int eval_c = processImageFileAndTest(strFileName, c);
						if (eval_c == c) {
							System.out.printf("'%s' was classified correctly!\n", strFileName);
							confusionMatrix[c-1][c-1]++;
						} else {
							System.out.printf("'%s' (expected %d) was mis-classified as %d\n", strFileName, c, eval_c);
							confusionMatrix[c-1][eval_c-1]++;
						}
					} else {
						done = true;
					}
					i++;
				}
				c++;
			}
			displayConfusionMatrix(confusionMatrix);
		}
	}