ddoublex | R Documentation |
Density for and random values from double exponential (Laplace)
distribution with density exp(-abs(x-mu)/lambda)/(2*lambda)
,
for which the median is the ML estimator.
ddoublex(x, mu=0, lambda=1) rdoublex(n,mu=0,lambda=1)
x |
numeric vector. |
mu |
numeric. Distribution median. |
lambda |
numeric. Scale parameter. |
n |
integer. Number of random values to be generated. |
density.
random number generation.
ddoublex
gives out a vector of density values.
rdoublex
gives out a vector of random numbers generated by
the double exponential distribution.
Christian Hennig chrish@stats.ucl.ac.uk http://www.homepages.ucl.ac.uk/~ucakche/
Huber, P. J. and Ronchetti, E. (2009) Robust Statistics (2nd ed.). Wiley, New York.
set.seed(123456) ddoublex(1:5,lambda=5) rdoublex(5,mu=10,lambda=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.