Laplace.Metropolis: Implement a random walk Metropolis sampler for generating the...

Description Usage Arguments Value Examples

View source: R/Laplace.R

Description

Implement a random walk Metropolis sampler for generating the standard Laplace distribution,For the increment, simulate from a normal distribution.

Usage

1

Arguments

sigma

the shape paramaters of Laplace distribution

N

the length of the series you wanted

Value

a series satisfy Laplace distribution

Examples

1
2
3
4
5
6
## Not run: 
N<-1e4
sigma<-4
laplace1<-Laplace.Metropolis(sigma,N)

## End(Not run)

nhhyqmsir/SC19040 documentation built on Jan. 3, 2020, 12:15 a.m.