rnorm_bounded | R Documentation |
Takes an intended range of values for the property and returns a randomly instantiated value.
rnorm_bounded(min = 0, max = 1, n_sigma = 2)
min |
The lower boundary of the interval to be sampled from. |
max |
The upper boundary of the interval to be sampled from. |
n_sigma |
An integer number indicating the range of the Gaussian distribution be accepted without resampling. |
This function considers the given range [min, max]
to be the
n
-sigma range of a Gaussian probability distribution, with the mean
lying in the center of the range. Samples outside of this interval
(i.e. outside of the n
-sigma range, hence e.g. less than 5% of all
samples for n = 2
) are rejected and resampled.
A single numerical value lying in the given interval.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.