Folded_draw: Draw a parameter from a folded Normal distribution

Description Usage Arguments Value Examples

View source: R/Folded_draw.R

Description

This function draws a single value from a folded Normal distribution with mean the current value of the parameter, and variance as required.

Usage

1
Folded_draw(param.cur, param.sigma, lower, upper)

Arguments

param.cur

The current value of the parameter.

param.sigma

The standard deviation of the folded Normal distribution.

lower

The lower bound of the distribution.

upper

The upper bound of the distribution.

Value

Returns a draw from the specified folded Normal distribution.

Examples

1
Folded_draw(param.cur = 0.4, param.sigma = 0.1, lower = 0, upper = 1)

BenjamenSimon/EpidemicR documentation built on March 23, 2020, 11:03 p.m.