View source: R/truncated_exponential.R
rexp_trunc | R Documentation |
Generates random values from a truncated exponential distribution
rexp_trunc(n, lambda, lower, upper)
n |
number of random values to generates |
lambda |
rate parameter |
lower |
lower bound |
upper |
upper bound |
positive double
Other truncated exponential:
dexp_trunc_log()
hist(
rexp_trunc(1e4, lambda = 3, lower = 1, upper = 2),
main = "Truncated exponential distribution", xlab = NULL
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.