Skip to content

Commit

Permalink
add erfinv
Browse files Browse the repository at this point in the history
  • Loading branch information
dmazarei committed Jul 1, 2024
1 parent db4bf72 commit c8496f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
### error function
erf <- function(x) 2 * stats::pnorm(x * sqrt(2)) - 1

### inverses error function
erfinv <- function (x) qnorm((1 + x)/2)/sqrt(2)

0 comments on commit c8496f2

Please sign in to comment.