Learn R Programming

lmomco (version 2.4.14)

pdflap: Probability Density Function of the Laplace Distribution

Description

This function computes the probability density of the Laplace distribution given parameters (\(\xi\) and \(\alpha\)) computed by parlap. The probability density function is $$f(x) = (2\alpha)^{-1} \exp(Y)\mbox{,}$$ where \(Y\) is $$Y = \left(\frac{-|x - \xi|}{\alpha}\right)\mbox{.}$$

Usage

pdflap(x, para)

Value

Probability density (\(f\)) for \(x\).

Arguments

x

A real value vector.

para

The parameters from parlap or vec2par.

Author

W.H. Asquith

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

cdflap, qualap, lmomlap, parlap

Examples

Run this code
  lmr <- lmoms(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