Local Search Function

Share:

Description

Search function

Usage

1
unif.mh(n, center, sd)

Arguments

n

Sample size. A positive scalar integer.

center

Mean. A numeric scalar (or vector).

sd

Standard deviation. A numeric scalar (or vector).

Value

A numeric vector of length n.

See Also

dlog.norm, MSS.snow.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
x <- unif.mh(100, 1, 1)
hist(x)

## The function is currently defined as
function (n, center, sd) 
{
    w <- sd * sqrt(3)
    a <- center - w
    b <- center + w
    x <- runif(n, a, b)
    return(x)
  }