unif.mh | R Documentation |
Search function
unif.mh(n, center, sd)
n |
Sample size. A positive scalar integer. |
center |
Mean. A numeric scalar (or vector). |
sd |
Standard deviation. A numeric scalar (or vector). |
A numeric vector of length n
.
dlog.norm
, MSS.snow
.
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.