Skip to content

Commit

Permalink
added a softplus example
Browse files Browse the repository at this point in the history
  • Loading branch information
freezenik committed Jul 1, 2024
1 parent 05a8bbd commit 19b6201
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion man/softplus.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ softplus(a = 1)
}

\examples{
softplus(a = 1)
## softplus function for different values of a.
plot(softplus(a = 1)$linkinv, -4, 4, ylab = "softplus(x)")
plot(softplus(a = 10)$linkinv, -4, 4, col = 4, add = TRUE)
legend("topleft", c("a = 1", "a = 10"), lwd = 1, col = c(1, 4))
}

\keyword{regression}
Expand Down

0 comments on commit 19b6201

Please sign in to comment.