adapt_delta function

Target average acceptance probability