dist_trunc(dist =NULL, min =NULL, max =NULL, offset =0, max_retry =100)
Arguments
dist: An underlying distribution, or NULL as a placeholder.
min: Minimum value to truncate at (exclusive), or NULL as a placeholder.
max: Maxmimum value to truncate at (inclusive), or NULL as a placeholder.
offset: Offset to be added to each observation after truncation, or NULL as a placeholder. Truncation of dist will occur to (min, max]. The offset is then added deterministically.
max_retry: Maximum number of resample attempts when trying to sample with rejection.