Probability function of a discretized Exponentiel distribution.

pdexp(a, l_values)

Arguments

a

a positive value, the mean of the Exponential prior.

l_values

a numerical value, the discrete support of the parameter l.

Value

a numerical vector, which is the prability function on l_values.

Examples

pdexp(10,seq(0,1,1))
#> [1] 0.993262053 0.006737641

x <- seq(0,10,le=1e3)
plot(x,dexp(x,0.5),lty=2,type="l")
lines(pdexp(0.5,1:10),type="p")