This function computes the probability density of the Truncated Exponential distribution given parameters (partexp
. The parameter
The distribution is restricted to a narrow range of L-CV (
pdftexp(x, para)
A real value vector.
Probability density (
Vogel, R.M., Hosking, J.R.M., Elphick, C.S., Roberts, D.L., and Reed, J.M., 2008, Goodness of fit of probability distributions for sightings as species approach extinction: Bulletin of Mathematical Biology, DOI 10.1007/s11538-008-9377-3, 19 p.
# NOT RUN {
lmr <- vec2lmom(c(40,0.38), lscale=FALSE)
pdftexp(0.5,partexp(lmr))
# }
# NOT RUN {
F <- seq(0,1,by=0.001)
A <- partexp(vec2lmom(c(100, 1/2), lscale=FALSE))
x <- quatexp(F, A)
plot(x, pdftexp(x, A), pch=16, type='l')
by <- 0.01; lcvs <- c(1/3, seq(1/3+by, 1/2-by, by=by), 1/2)
reds <- (lcvs - 1/3)/max(lcvs - 1/3)
for(lcv in lcvs) {
A <- partexp(vec2lmom(c(100, lcv), lscale=FALSE))
x <- quatexp(F, A)
lines(x, pdftexp(x, A),
pch=16, col=rgb(reds[lcvs == lcv],0,0))
}
# }
Run the code above in your browser using DataLab