powered by
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.
exp(-abs(x-mu)/lambda)/(2*lambda)
ddoublex(x, mu=0, lambda=1) rdoublex(n,mu=0,lambda=1)
numeric vector.
numeric. Distribution median.
numeric. Scale parameter.
integer. Number of random values to be generated.
ddoublex gives out a vector of density values.
ddoublex
rdoublex gives out a vector of random numbers generated by the double exponential distribution.
rdoublex
density.
random number generation.
Huber, P. J. and Ronchetti, E. (2009) Robust Statistics (2nd ed.). Wiley, New York.
# NOT RUN { set.seed(123456) ddoublex(1:5,lambda=5) rdoublex(5,mu=10,lambda=5) # }
Run the code above in your browser using DataLab