Learn R Programming

ggdmc (version 0.2.5.2)

GetGamma: Generate a Gamma Vector

Description

This is part of DE-MCMC algorithm. This function generates a gamma vector for element-wise computation in Armadillo C++. This function is based on p242 ter Braak (2006) who cited Roberts and Rosenthal (2001)

Usage

GetGamma(npar, gammamult, hyper = FALSE)

Arguments

npar

number of parameters.

gammamult

a tuning parameter stands for for gamma mutation. Default value is 2.38.

hyper

a boolean switch, indicating to calculate hyper gamma

Value

a vector

Examples

Run this code
# NOT RUN {
pVec <- c(A = 1.51, b = 2.7, muv1 = 3.32, muv2 = 2.24, t_ND = 0.08,
          muw1 = 1.51, muw2 = 3.69, t_delay = 0.31, sv = 1, swt = 0.5)
gamma <- GetGamma(length(pVec), 2.38)
# }

Run the code above in your browser using DataLab