private double[] getResultsArray(Matrix labels, int index) {
		double[] result = new double[labels.valueCount(0)];
		
		for (int i = 0; i < result.length; i++) {
			//System.out.println("labels=" + (int)labels.get(i, 0) + "  i=" + i);
			if (labels.get(index, 0) == i) {
				result[i] = 1;
				//System.out.println("HERE");
			} else {
				result[i] = 0;
			}
		}
//		System.out.print("RESULT[");
//		for (int i = 0; i < result.length; i++) {
//			System.out.print("i=" + i + "  [i]="+ result[i] + "  ");
//		}
//		System.out.println("] @ index="+index);
		return result;
	}