threshold function (return 1.0 if another pattern is >= threshold, else
0.0)