Displaying 1 result from an estimated 1 matches for "addlog".
Did you mean:
addloc
2013 Nov 07
1
R interface to C API Rf_logspace_{add,sub}?
...es have functions which do that same sort
of thing (log(exp(x)+exp(y)) and log(exp(x)-exp(y)) without unnecessary
floating point errors). They have names like
matrixStats::logSumExp(lx, na.rm=FALSE, ...) (the ... is ignored by the function)
sna::logSub(x,y), logSum(x), logMean(x)
BTYD::addLogs(loga, logb) and subLogs(loga, logb)
Googling for logSumExp (the Python name) indicates that many know this as "LSE"
(the "Log-Sum-Exp trick").
I've seen several instances in R-help recently where user code could be
made more accurate if these were available. They can be w...