udslash(lb=-Inf, ub=Inf)
"unuran.cont"
. The domain of the distribution can be truncated to the
interval (lb
,ub
).
unuran.cont
.## Create distribution object for a slash distribution
distr <- udslash()
## Generate generator object; use method PINV (inversion)
gen <- pinvd.new(distr)
## Draw a sample of size 100
x <- ur(gen,100)
Run the code above in your browser using DataLab