raiseValueError("For the CMC computation at least one positive score is necessary. Please review who you are loading the scores. You must set `load_only_negatives=False` in the :py:func:`bob.measure.load.cmc_four_column` or `:py:func:`bob.measure.load.cmc_five_column` methods.")
# get the maximum positive score for the current probe item
# (usually, there is only one positive score, but just in case...)
# (usually, there is only one positive score, but just in case...)
max_pos=numpy.max(pos)
# count the number of negative scores that are higher than the best positive score
index=numpy.sum(neg>=max_pos)
match_characteristic[index]+=1
# count the number of negative scores that are higher than the best positive score