Internal function, logdiff
This function calculates the log of the difference of the exponentiated logs taking out the max, i.e. insuring that the difference is not negative
max(x) + log(exp(x - max(x,y)) - exp(y-max(x,y)))
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.