rtruncated_normal {simts} | R Documentation |
Truncated Normal Distribution Sampling Algorithm
Description
Enables sampling from a truncated normal
Usage
rtruncated_normal(n, mu, sigma, a, b)
Arguments
n |
An unsigned int indicating the number of observations to generate.
|
mu |
A double indicating the mean of the normal.
|
sigma |
A double indicating the standard deviation of the normal.
|
a |
A double that is the lower bound of the truncated normal.
|
b |
A double that is the upper bound of the truncated normal.
|
[Package
simts version 0.2.2
Index]