Exemple #1
0
def CompareHashNN(hash_matrix):
    global combinedresultN, L
    np = len(combinedresultN)
    nq = len(hash_matrix)
    hit_matrix = [[0 for x in xrange(np)] for y in xrange(nq)]
    hit_matrix = smjModule.HitCalculation(hash_matrix, combinedresultN, hit_matrix, L, nq, np)
    return hit_matrix
def CompareHashNQQ(hash_matrix):
    global combinedresultQ, L
    hit_matrix = [[0 for x in xrange(len(combinedresultQ))]
                  for y in xrange(len(hash_matrix))]
    hit_matrix = smjModule.HitCalculation(hash_matrix, combinedresultQ,
                                          hit_matrix, L)
    return hit_matrix