Bayesian adaptive estimation of threshold versus external noise contrast functions