Learn R Programming

widals (version 0.6.2)

dlog.norm: Local Search Function

Description

Local hyperparameter exponentiated-normal search function

Usage

dlog.norm(n, center, sd)

Value

A numeric vector of length \(n\).

Arguments

n

Sample size. A positive scalar integer.

center

Exponential of the mean. A numeric scalar (or vector).

sd

Standard deviation. A numeric scalar (or vector).

Details

This function can be used by MSS.snow.

See Also

unif.mh, MSS.snow, fun.load.

Examples

Run this code

x <- dlog.norm(100, 1, 1)
hist(x)

## The function is currently defined as
function (n, center, sd) 
{
    return(exp(rnorm(n, log(center), sd)))
  }

Run the code above in your browser using DataLab