Skip to content

Commit

Permalink
Fix documentation of BiCopParamDistLp
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisDerumigny committed Apr 12, 2022
1 parent 9bcd88b commit 8c9b9a3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
4 changes: 2 additions & 2 deletions R/BiCopParamDistLp.R
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ BiCopParamDistLp <- function(family, par, par_p, par2 = par, par2_p = par_p, fam
}
})

result = optim(par = c(0.2, 0.2), fn = fn, gr = gr,
lower = truncVal, upper = 1 - truncVal, method = "L-BFGS-B")
result = stats::optim(par = c(0.2, 0.2), fn = fn, gr = gr,
lower = truncVal, upper = 1 - truncVal, method = "L-BFGS-B")

return (list(distance = -result$value, u_max = result$par ))
}
Expand Down
23 changes: 17 additions & 6 deletions man/BiCopParamDistLp.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8c9b9a3

Please sign in to comment.