powered by
prob
udgeom(prob, lb = 0, ub = Inf)
0 < prob <= 1<="" code="">.=>
"unuran.discr"
The domain of the distribution can be truncated to the interval (lb,ub).
lb
ub
## Create distribution object for Geometric distribution dist <- udgeom(prob=0.33) ## Generate generator object; use method DARI gen <- darid.new(dist) ## Draw a sample of size 100 x <- ur(gen,100)
Run the code above in your browser using DataLab