Region-dependent, algorithmically directed thresholds for maximum-likelihood detection of ternary PRS channels