R/RcppExports.R

Defines functions f randomMHC

Documented in randomMHC

# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

f <- function(x) {
    .Call('_SC19090_f', PACKAGE = 'SC19090', x)
}

#' @title A Metropolis-Hastings sampler using Rcpp
#' @description A Metropolis-Hastings sampler using Rcpp
#' @param sigma the standard deviation of the sample-generating normal distribution
#' @param x0 initial values
#' @param N length of Markov Chain
#' @return A Markov China of generating samples
#' @useDynLib SC19090
#' @examples
#' \dontrun{
#' R= randomMHC(2,10,2000)
#' }
#' @export
randomMHC <- function(sigma, x0, N) {
    .Call('_SC19090_randomMHC', PACKAGE = 'SC19090', sigma, x0, N)
}
XixuHu/SC19090 documentation built on Jan. 2, 2020, 8:40 p.m.