Skip to contents

Density function of truncated exponential distribution

Usage

dtexp(x, alpha, ll, ul, lr, ur)

Arguments

x

A numeric vector of values

alpha

exponent

ll

location of lower sigmoid

ul

steepness of lower sigmoid

lr

location of upper sigmoid

ur

steepness of upper sigmoid

Value

A numeric vector of densities

Examples

# Evaluate the truncated exponential density
x <- seq(0, 15, length.out = 100)
d <- dtexp(x, alpha = 0.5, ll = 2, ul = 20, lr = 12, ur = 20)
plot(x, d, type = "l", main = "Truncated exponential density")