powered by
Probability function of a discretized Exponentiel distribution.
pdexp(a, l_values)
a numerical vector, which is the prability function on l_values.
l_values
a positive value, the mean of the Exponential prior.
a numerical value, the discrete support of the parameter l.
pdexp(10,seq(0,1,1)) x <- seq(0,10,le=1e3) plot(x,dexp(x,0.5),lty=2,type="l") lines(pdexp(0.5,1:10),type="p")
Run the code above in your browser using DataLab