# DExp-class

0th

Percentile

##### Class "DExp"

The double exponential or Laplace distribution with rate $\lambda$ has density $$f(x) = \frac{1}{2}\lambda {e}^{- \lambda |x|}$$ C.f. Exp-class, rexp

Keywords
distribution
##### Objects from the Class

Objects can be created by calls of the form DExp(rate). This object is a double exponential (or Laplace) distribution.

##### Extends

Class "AbscontDistribution", directly. Class "UnivariateDistribution", by class "AbscontDistribution". Class "Distribution", by class "AbscontDistribution".

##### concept

• absolutely continuous distribution
• Double exponential distribution
• Laplace distribution
• S4 distribution class
• generating function

Exp-class ExpParameter-class AbscontDistribution-class Reals-class rexp

##### Aliases
• DExp-class
• DExp
• Laplace
• DoubleExponential
• initialize,DExp-method
##### Examples
D <- DExp(rate = 1) # D is a Laplace distribution with rate = 1.
r(D)(1) # one random number generated from this distribution, e.g. 0.4190765
d(D)(1) # Density of this distribution is 0.1839397 for x = 1.
p(D)(1) # Probability that x < 1 is 0.8160603.
q(D)(.1) # Probability that x < -1.609438 is 0.1.
rate(D) # rate of this distribution is 1.
rate(D) <- 2 # rate of this distribution is now 2.
3*D ###  still a DExp -distribution
Documentation reproduced from package distr, version 2.3.1, License: LGPL-3

### Community examples

Looks like there are no examples yet.