def diff_area_function(extmap, bins, scale=1):
    '\n    See pdf2\n    '
    (s, bins) = area_function(extmap, bins)
    dsdx = ((- np.diff(s)) / np.diff(bins))
    return ((dsdx * scale), avg(bins))
See pdf2
def diff_area_function(extmap, bins, scale=1):
    '\n    \n    '
    (s, bins) = area_function(extmap, bins)
    dsdx = ((- np.diff(s)) / np.diff(bins))
    return ((dsdx * scale), avg(bins))