def log_diff_area_function(extmap, bins):
    '\n    See pdf2\n    '
    (s, bins) = diff_area_function(extmap, bins)
    g = (s > 0)
    dlnsdlnx = (np.diff(np.log(s[g])) / np.diff(np.log(bins[g])))
    return (dlnsdlnx, avg(bins[g]))
See pdf2
def log_diff_area_function(extmap, bins):
    '\n    \n    '
    (s, bins) = diff_area_function(extmap, bins)
    g = (s > 0)
    dlnsdlnx = (np.diff(np.log(s[g])) / np.diff(np.log(bins[g])))
    return (dlnsdlnx, avg(bins[g]))