logarithmic sampling for densities, log r, chi^2 calculated in linear space