modified.exp.lower: Modified exponential function with lower bound

Description Usage Arguments Details Value Examples

Description

Modified exponential function with lower bound

Usage

1
modified.exp.lower(x, lower.limit = 0)

Arguments

x

Point to evaluate modified exponential function and gradient

lower.limit

Lower limit of the modified exponential function; defaults to 0

Details

Evaluates the modified exponential function (exp(x) + lower.bound) and its gradient (exp(x)).

Value

Returns a list with two elements, each with the same number of elements as x

value

Value of the modified exponential function at x

gradient

Value of the gradient of the modified exponential function at x

Examples

1
2
3
4
5
x <- seq(-5, 5, length.out = 100)
exp.result <- modified.exp.lower(x)

plot(exp.result$value ~ x, type = "l")
plot(exp.result$gradient ~ x, type = "l")

tkmckenzie/ikde documentation built on May 13, 2019, 9:53 p.m.