unif.mh {widals}R Documentation

Local Search Function

Description

Search function

Usage

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


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)
  }

[Package widals version 0.6.1 Index]