lnDiffErfs {tigre} | R Documentation

## Helper function for computing the log of difference

### Description

Helper function for computing the log of difference

### Usage

      lnDiffErfs(x1, x2)

### Arguments

`x1` | argument of the positive erf
`x2` | argument of the negative erf

### Details

`v <- lnDiffErfs(x1, x2)` computes the log of the difference of two erfs in a numerically stable manner.

### Value

`v` | list(c(log(abs(erf(x1) - erf(x2))), sign(erf(x1) - erf(x2))))

### Examples

      lnDiffErfs(100, 10)

[Package tigre version 1.48.0 Index]