Description Usage Arguments Value Examples
A random walk Metropolis sampler for generating the standard Laplace distribution
1 | Metropolis(sigma, x0, N)
|
x0: |
the initial point(double) |
sigma: |
the standard deviation in the normal distribution(double) |
N: |
the length of the chain(int) |
a random sample of size N
1 2 3 4 5 6 7 | ## Not run:
N<-100
sigma<-1
x0<-0
Metropolis(sigma,x0,N)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.