powered by
Returns a sample of N observations from a Laplace distribution with specified mean and spread.
LaplaceDist(N, mean, spread, max = 0.5, min = -0.5)
N values from a Laplace distribution
is the required sample size
is the required mean
is the spread of the function
the upper limit of the distribution. Must be finite.
the lower limit of the distribution. Must be finite.
Barbara Kitchenham and Lech Madeyski
set.seed(123) LaplaceDist(10, 0, 1) # [1] -0.55311564 0.85946218 -0.20094937 1.45258293 2.12808209 -2.39565480 0.05785263 # [8] 1.53636446 0.10855453 -0.09076809
Run the code above in your browser using DataLab