modified.exp.upper.inv: Modified exponential function with upper bound

Description Usage Arguments Details Value Examples

Description

Modified exponential function with upper bound

Usage

1
modified.exp.upper.inv(x, upper.limit = 0)

Arguments

x

Point to evaluate modified exponential function and gradient

upper.limit

Lower limit of the modified exponential function; defaults to 0

Details

Evaluates the inverse modified exponential function (log(upper.bound - x)) and its gradient (-1 / (upper.bound - 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, -0.005, length.out = 100)
exp.result <- modified.exp.upper.inv(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.