texp.Rd
pdf, cdf, inverse cdf, and random deviates of the truncated Exponential distribution.
rtexp(n, rate, a = 0, b = Inf) dtexp(x, rate, a = 0, b = Inf) ptexp(q, rate, a = 0, b = Inf) qtexp(p, rate, a = 0, b = Inf)
n | number of observations. If length(n) > 1, the length is taken to be the number required. |
---|---|
rate | vector of rate parameters. |
a | vector of lower truncation limits |
b | vector of upper truncation limits |
x, q | vector of quantiles. |
p | vector of probabilities. |
dtexp gives the density, ptexp gives the distribution function, qtexp gives the quantile function, and rtexp generates random deviates.
rtexp(5, 1, a=0.5, b=3.0)#> [1] 2.8785468 0.6081507 1.5598231 2.3771106 0.5045242#> [1] 0.00000000 1.08942549 0.66076996 0.40077724 0.24308368 0.14743771 0.08942549 #> [8] 0.00000000 0.00000000#> [1] 0.0000000 0.0000000 0.4286555 0.6886482 0.8463418 0.9419878 1.0000000 #> [8] 1.0000000 1.0000000#> [1] 0.5000000 0.5962813 0.7028300 0.8221003 0.9575471 1.1142574 1.3001735 #> [8] 1.5287332 1.8255079 2.2494100 3.0000000