View source: R/iclogcondist_simulation_dist.R
rtweibull | R Documentation |
This function generates random samples from a truncated Weibull distribution
using inverse transform sampling. When shape = 1
, it reduces to a truncated exponential distribution.
rtweibull(n, shape = 1, scale = 1, upper_bound = Inf)
n |
An integer specifying the number of random samples to generate. |
shape |
A positive numeric value representing the shape parameter of the Weibull distribution. Default is |
scale |
A positive numeric value representing the scale parameter of the Weibull distribution. Default is |
upper_bound |
A positive numeric value indicating the upper truncation point. Default is |
A numeric vector of n
random samples from the truncated Weibull distribution.
# Generate 10 random samples from a truncated Weibull distribution
rtweibull(10, shape = 2, scale = 1, upper_bound = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.