rwC: A random walk Metropolis sampler using Rcpp

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

A random walk Metropolis sampler for generating the standard Laplace distribution

Usage

1
rwC(sigma, x0, N)

Arguments

sigma

The standard deviation in the normal distribution (double)

x0

The initial point (double)

N

The length of the chain (int)

Value

The random numbers and the number of rejections (list)

Examples

1
2
3
4
5
6
7
## Not run: 
N<-1000
sigma<-0.05
x0<-25
rwC(sigma,x0,N)

## End(Not run)

sunhfsc/SC19052 documentation built on Jan. 3, 2020, 9:19 p.m.