Learn R Programming

lmomco (version 1.7.3)

pdflap: Probability Density Function of the Laplace Distribution

Description

This function computes the probability density of the Laplace distribution given parameters ($\xi$ and $\alpha$) of the distribution computed by parlap. The probability density function of the distribution is

$$f(x) = \frac{1}{2}\alpha^{-1} e^{-|x - \xi|/\alpha} \mbox{.}$$

Usage

pdflap(x, para)

Arguments

x
A real value.
para
The parameters from parlap or similar.

Value

  • Probability density ($f$) for $x$.

References

Hosking, J.R.M., 1986, The theory of probability weighted moments: IBM Research Report RC12210, T.J. Watson Research Center, Yorktown Heights, New York.

See Also

pdflap, qualap, parlap

Examples

Run this code
lmr <- lmom.ub(c(123,34,4,654,37,78))
  lap <- parlap(lmr)
  x <- qualap(0.5,lap)
  pdflap(x,lap)

Run the code above in your browser using DataLab