d_to_gamma function

Transform threshold increments to thresholds