Description Usage Arguments Value Examples
Implement a random walk Metropolis sampler for generating the standard Laplace distribution,For the increment, simulate from a normal distribution.
1 |
sigma |
the shape paramaters of Laplace distribution |
N |
the length of the series you wanted |
a series satisfy Laplace distribution
1 2 3 4 5 6 | ## Not run:
N<-1e4
sigma<-4
laplace1<-Laplace.Metropolis(sigma,N)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.