boolean[][] threshold(double[][] array, double threshold) {
		boolean[][] result = new boolean[array.length][array[0].length];
		for(int i = 0; i < result.length; ++i) {
			for(int j = 0; j < result[i].length; ++j) {
				result[i][j] = array[i][j] >= threshold;
			}
		}
		return result;
	}