| dist_trunc | R Documentation |
Truncated distribution
dist_trunc(dist = NULL, min = NULL, max = NULL, offset = 0, max_retry = 100)
dist |
An underlying distribution, or |
min |
Minimum value to truncate at (exclusive),
or |
max |
Maxmimum value to truncate at (inclusive),
or |
offset |
Offset to be added to each observation after truncation,
or |
max_retry |
Maximum number of resample attempts when trying to sample with rejection. |
A TruncatedDistribution object.
Other Distributions:
Distribution,
dist_bdegp(),
dist_beta(),
dist_binomial(),
dist_blended(),
dist_dirac(),
dist_discrete(),
dist_empirical(),
dist_erlangmix(),
dist_exponential(),
dist_gamma(),
dist_genpareto(),
dist_lognormal(),
dist_mixture(),
dist_negbinomial(),
dist_normal(),
dist_pareto(),
dist_poisson(),
dist_translate(),
dist_uniform(),
dist_weibull()
d_norm <- dist_normal(mean = 0, sd = 1)
d_tnorm <- dist_trunc(dist = d_norm, min = -2, max = 2, offset = 1)
plot_distributions(d_norm, d_tnorm, .x = seq(-2, 3, length.out = 100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.