Manage histogram tails to remove very far outliers.
histuple is list(hx = hist\$mids, hy = hist\$counts),
which is an internal representation of histogram
Usage
ecd.manage_hist_tails(htu, merge_tails = c(0, 0))
Arguments
htu
list, input histuple
merge_tails
length-two numeric vector, points to be merged for left and right tails