The polarity-coincidence correlator: A nonparametric detection device