powered by
lambda
udpois(lambda, lb = 0, ub = Inf)
"unuran.discr"
The domain of the distribution can be truncated to the interval (lb,ub).
lb
ub
unuran.discr
## Create distribution object for Poisson distribution dist <- udpois(lambda=2.3) ## 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