private void getHalfHammingPairs() {

        for (int i = 0; i < halfHamDist.length; i++) {
            if (!(centers.contains(i + 1) || singles.contains(i + 1))) {
                for (int j = 0; j < halfHamDist[i].length; j++) {
                    if (halfHamDist[i][j] < halfHamDistThr && i != j && !(centers.contains(j + 1) || singles.contains(j + 1))) {
                        halfHammingPairs.add(new Integer[]{new Integer(i + 1), new Integer(j + 1)});
                    }
                }
            }
        }


        removeSingleHammingPairs();
        removeDuplicateHammingPairs();

        /*
         * for(Integer[] i:halfHammingPairs) System.out.print(i[0]+"-"+i[1]+"
         * "); System.out.println();
         */
    }