LaplaceDist
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
: is the required sample sizemean
: is the required meanspread
: is the spread of the functionmax
: the upper limit of the distribution. Must be finite.min
: the lower limit of the distribution. Must be finite.N values from a Laplace distribution
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
Barbara Kitchenham and Lech Madeyski