lnDiffErfs {tigre} | R Documentation |
Helper function for computing the log of difference
lnDiffErfs(x1, x2)
x1 |
argument of the positive erf |
x2 |
argument of the negative erf |
v <- lnDiffErfs(x1, x2)
computes the log of the difference of two erfs in a numerically stable manner.
v |
list(c(log(abs(erf(x1) - erf(x2))), sign(erf(x1) - erf(x2)))) |
lnDiffErfs(100, 10)